[FFmpeg-cvslog] pcmdec: do not needlessly set *data_size to 0

Justin Ruggles git at videolan.org
Thu Oct 27 01:46:44 CEST 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Tue Sep 27 17:52:48 2011 -0400| [6b94711f15257dfd1b45596e060b88a26059bc0d] | committer: Justin Ruggles

pcmdec: do not needlessly set *data_size to 0

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6b94711f15257dfd1b45596e060b88a26059bc0d
---

 libavcodec/pcm.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index 66edfba..4b11583 100644
--- a/libavcodec/pcm.c
+++ b/libavcodec/pcm.c
@@ -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;
 



More information about the ffmpeg-cvslog mailing list