[FFmpeg-cvslog] truespeech: remove unneeded zero-size packet check.
Justin Ruggles
git at videolan.org
Fri Oct 14 03:58:30 CEST 2011
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Wed Oct 12 23:10:41 2011 -0400| [595cf1a1aa09f6214eed57bd9eb6493456918efe] | committer: Justin Ruggles
truespeech: remove unneeded zero-size packet check.
This is already checked in avcodec_decode_audio3()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=595cf1a1aa09f6214eed57bd9eb6493456918efe
---
libavcodec/truespeech.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/libavcodec/truespeech.c b/libavcodec/truespeech.c
index 6b6d131..0ab2cab 100644
--- a/libavcodec/truespeech.c
+++ b/libavcodec/truespeech.c
@@ -344,9 +344,6 @@ static int truespeech_decode_frame(AVCodecContext *avctx,
int16_t out_buf[240];
int iterations;
- if (!buf_size)
- return 0;
-
if (buf_size < 32) {
av_log(avctx, AV_LOG_ERROR,
"Too small input buffer (%d bytes), need at least 32 bytes\n", buf_size);
More information about the ffmpeg-cvslog
mailing list