From 9b7ca3b71d3e5d4e2cd010b0f004cdad00e8d354 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 3 Apr 2008 18:28:16 +0000 Subject: [PATCH] Decode stuff from extradata as well. Originally committed as revision 12675 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpeg12.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 4e2df3a1d..96d37c732 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -2283,6 +2283,9 @@ static int mpeg_decode_frame(AVCodecContext *avctx, s->slice_count= 0; + if(avctx->extradata && !avctx->frame_number) + decode_chunks(avctx, picture, data_size, avctx->extradata, avctx->extradata_size); + return decode_chunks(avctx, picture, data_size, buf, buf_size); } -- 2.11.0