omg, fix compilation
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 20 Mar 2008 09:38:55 +0000 (09:38 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 20 Mar 2008 09:38:55 +0000 (09:38 +0000)
Originally committed as revision 12509 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegaudiodec.c

index a90eb92f51dc2bee2189921157f3fee205ead00a..82e7803e7b6c1c38f5756007304d45089320cb8c 100644 (file)
@@ -2301,15 +2301,15 @@ static int mp_decode_frame(MPADecodeContext *s,
     dprintf(s->avctx, "frame %d:\n", s->frame_count);
     switch(s->layer) {
     case 1:
-        avctx->frame_size = 384;
+        s->avctx->frame_size = 384;
         nb_frames = mp_decode_layer1(s);
         break;
     case 2:
-        avctx->frame_size = 1152;
+        s->avctx->frame_size = 1152;
         nb_frames = mp_decode_layer2(s);
         break;
     case 3:
-        avctx->frame_size = s->lsf ? 576 : 1152;
+        s->avctx->frame_size = s->lsf ? 576 : 1152;
     default:
         nb_frames = mp_decode_layer3(s);