copy avctx
authorFabrice Bellard <fabrice@bellard.org>
Wed, 15 Aug 2001 13:11:03 +0000 (13:11 +0000)
committerFabrice Bellard <fabrice@bellard.org>
Wed, 15 Aug 2001 13:11:03 +0000 (13:11 +0000)
Originally committed as revision 100 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpeg12.c

index 79bf31d..f0aecd9 100644 (file)
@@ -1396,6 +1396,7 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx,
         s->width = width;
         s->height = height;
         s->has_b_frames = 1;
+        s->avctx = avctx;
         avctx->width = width;
         avctx->height = height;
         avctx->frame_rate = frame_rate_tab[s->frame_rate_index];