1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

truespeech: remove unneeded zero-size packet check.

This is already checked in avcodec_decode_audio3()
This commit is contained in:
Justin Ruggles 2011-10-12 23:10:41 -04:00
parent 82be06bbb3
commit 595cf1a1aa

View File

@ -344,9 +344,6 @@ static int truespeech_decode_frame(AVCodecContext *avctx,
int16_t out_buf[240]; int16_t out_buf[240];
int iterations; int iterations;
if (!buf_size)
return 0;
if (buf_size < 32) { if (buf_size < 32) {
av_log(avctx, AV_LOG_ERROR, av_log(avctx, AV_LOG_ERROR,
"Too small input buffer (%d bytes), need at least 32 bytes\n", buf_size); "Too small input buffer (%d bytes), need at least 32 bytes\n", buf_size);