[FFmpeg-cvslog] adpcmdec: remove unneeded buf_size==0 check.
Justin Ruggles
git at videolan.org
Sun Oct 16 04:20:36 CEST 2011
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sun Oct 2 14:43:28 2011 -0400| [8140a1288ff2498adcbb67db73ef9862b518bb88] | committer: Justin Ruggles
adpcmdec: remove unneeded buf_size==0 check.
This is already done by avcodec_decode_audio3()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8140a1288ff2498adcbb67db73ef9862b518bb88
---
libavcodec/adpcm.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index eb244bd..8ab3bd8 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
//
More information about the ffmpeg-cvslog
mailing list