[libav-devel] [PATCH 1/7] dpcm: remove unneeded buf_size==0 check.

Justin Ruggles justin.ruggles at gmail.com
Thu Nov 10 16:44:53 CET 2011


It is already checked in avcodec_decode_audio3()
---
 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:
-- 
1.7.1



More information about the libav-devel mailing list