diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-10-12 23:10:41 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-10-13 16:25:59 -0400 |
commit | 595cf1a1aa09f6214eed57bd9eb6493456918efe (patch) | |
tree | 0741770fbc906c7ae3bce32130af50494544d0f8 /libavcodec/truespeech.c | |
parent | 82be06bbb348bde16ed6e13ccbafac5f9264c478 (diff) | |
download | ffmpeg-595cf1a1aa09f6214eed57bd9eb6493456918efe.tar.gz |
truespeech: remove unneeded zero-size packet check.
This is already checked in avcodec_decode_audio3()
Diffstat (limited to 'libavcodec/truespeech.c')
-rw-r--r-- | libavcodec/truespeech.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/truespeech.c b/libavcodec/truespeech.c index 6b6d13142f..0ab2cab03c 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); |