[FFmpeg-devel] [PATCH 2/2] Enable parsing in FLV container

Michael Niedermayer michaelni at gmx.at
Thu Dec 12 04:34:51 CET 2013


On Wed, Dec 11, 2013 at 05:49:07PM -0800, Alex Sukhanov wrote:
> ---
>  libavformat/flvdec.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
> index 1024001..b19db0e 100644
> --- a/libavformat/flvdec.c
> +++ b/libavformat/flvdec.c
> @@ -256,6 +256,7 @@ static int flv_set_video_codec(AVFormatContext *s, AVStream *vstream,
>          return 1;     // 1 byte body size adjustment for flv_read_packet()
>      case FLV_CODECID_H264:
>          vcodec->codec_id = AV_CODEC_ID_H264;
> +        vstream->need_parsing = AVSTREAM_PARSE_FULL;

full parsing needs some extra parsing and spliting over the data
and could cause some slowdown


>          return 3;     // not 4, reading packet type will consume one byte
>      case FLV_CODECID_MPEG4:
>          vcodec->codec_id = AV_CODEC_ID_MPEG4;
> -- 
> 1.8.5.1
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131212/c6bfa71f/attachment.asc>


More information about the ffmpeg-devel mailing list