This is already done by avcodec_decode_audio3()
---
 libavcodec/adpcm.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index d63c2f2..745f740 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -347,9 +347,6 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
     uint32_t samples_in_chunk;
     int count1, count2;
 
-    if (!buf_size)
-        return 0;
-
     //should protect all 4bit ADPCM variants
     //8 is needed for CODEC_ID_ADPCM_IMA_WAV with 2 channels
     //
-- 
1.7.1

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to