[FFmpeg-cvslog] dpcm: remove unneeded buf_size==0 check.

Justin Ruggles git at videolan.org
Sat Nov 12 03:02:02 CET 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Wed Nov  2 16:47:53 2011 -0400| [e79da63282b354fb721ac4b763d268649f0efd76] | committer: Justin Ruggles

dpcm: remove unneeded buf_size==0 check.

It is already checked in avcodec_decode_audio3()

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

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

diff --git a/libavcodec/dpcm.c b/libavcodec/dpcm.c
index 6ba8ab1..f6531db 100644
--- a/libavcodec/dpcm.c
+++ b/libavcodec/dpcm.c
@@ -179,9 +179,6 @@ static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
     int stereo = s->channels - 1;
     int16_t *output_samples = data;
 
-    if (!buf_size)
-        return 0;
-
     /* calculate output size */
     switch(avctx->codec->id) {
     case CODEC_ID_ROQ_DPCM:



More information about the ffmpeg-cvslog mailing list