]> git.sesse.net Git - ffmpeg/commitdiff
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 79bf31dff09054c3bc95268aca04ad1b8cca8191..f0aecd9803f6c46b1a98f9d76e92d212861610d8 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];