more data_size=0 cleanup
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 21 May 2004 14:40:35 +0000 (14:40 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 21 May 2004 14:40:35 +0000 (14:40 +0000)
Originally committed as revision 3147 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mdec.c
libavcodec/pcm.c

index 219a39b..ef4e6ec 100644 (file)
@@ -163,8 +163,6 @@ static int decode_frame(AVCodecContext *avctx,
     AVFrame * const p= (AVFrame*)&a->picture;
     int i;
 
-    *data_size = 0;
-
     /* special case for last picture */
     if (buf_size == 0) {
         return 0;
index a6c0d34..4c999b4 100644 (file)
@@ -334,7 +334,6 @@ static int pcm_decode_frame(AVCodecContext *avctx,
         }
         break;
     default:
-        *data_size = 0;
         return -1;
     }
     *data_size = (uint8_t *)samples - (uint8_t *)data;