diff --git a/plugin/rtmp/pkg/video.go b/plugin/rtmp/pkg/video.go index c6f9c3e..30e143f 100644 --- a/plugin/rtmp/pkg/video.go +++ b/plugin/rtmp/pkg/video.go @@ -166,15 +166,15 @@ func (avcc *RTMPVideo) Parse(t *AVTrack) (err error) { return } } else { - switch ctx := t.ICodecCtx.(type) { - case *codec.H264Ctx: - avcc.filterH264(int(ctx.RecordInfo.LengthSizeMinusOne) + 1) - case *H265Ctx: - avcc.filterH265(int(ctx.RecordInfo.LengthSizeMinusOne) + 1) - } - if avcc.Size == 0 { - return ErrSkip - } + // switch ctx := t.ICodecCtx.(type) { + // case *codec.H264Ctx: + // avcc.filterH264(int(ctx.RecordInfo.LengthSizeMinusOne) + 1) + // case *H265Ctx: + // avcc.filterH265(int(ctx.RecordInfo.LengthSizeMinusOne) + 1) + // } + // if avcc.Size == 0 { + // return ErrSkip + // } } } return