pcmdec: do not needlessly set *data_size to 0
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 27 Sep 2011 21:52:48 +0000 (17:52 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 26 Oct 2011 16:01:06 +0000 (12:01 -0400)
libavcodec/pcm.c

index 66edfba..4b11583 100644 (file)
@@ -302,7 +302,6 @@ static int pcm_decode_frame(AVCodecContext *avctx,
     }
 
     buf_size= FFMIN(buf_size, *data_size/2);
-    *data_size=0;
 
     n = buf_size/sample_size;