Commit 3c25209b authored by Justin Ruggles's avatar Justin Ruggles

apedec: remove unneeded check for zero-size packet.

This is already checked by avcodec_decode_audio3().
parent 9a174562
...@@ -802,11 +802,6 @@ static int ape_decode_frame(AVCodecContext * avctx, ...@@ -802,11 +802,6 @@ static int ape_decode_frame(AVCodecContext * avctx,
int blockstodecode; int blockstodecode;
int bytes_used; int bytes_used;
if (buf_size == 0 && !s->samples) {
*data_size = 0;
return 0;
}
/* should not happen but who knows */ /* should not happen but who knows */
if (BLOCKS_PER_LOOP * 2 * avctx->channels > *data_size) { if (BLOCKS_PER_LOOP * 2 * avctx->channels > *data_size) {
av_log (avctx, AV_LOG_ERROR, "Packet size is too big to be handled in lavc! (max is %d where you have %d)\n", *data_size, s->samples * 2 * avctx->channels); av_log (avctx, AV_LOG_ERROR, "Packet size is too big to be handled in lavc! (max is %d where you have %d)\n", *data_size, s->samples * 2 * avctx->channels);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment