summaryrefslogtreecommitdiff
path: root/libavcodec/apedec.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-10-10 15:54:36 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-10-28 11:41:39 -0400
commit3c25209bd9ee83eeb0373dcf790eb116e986f8e1 (patch)
tree82cbf899d518222b90aafd1f73c446de1c377cb4 /libavcodec/apedec.c
parent9a174562e4622d7f3dcb89422fd92390cb336daa (diff)
apedec: remove unneeded check for zero-size packet.
This is already checked by avcodec_decode_audio3().
Diffstat (limited to 'libavcodec/apedec.c')
-rw-r--r--libavcodec/apedec.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
index a8ca44b9f7..bc77148d88 100644
--- a/libavcodec/apedec.c
+++ b/libavcodec/apedec.c
@@ -802,11 +802,6 @@ static int ape_decode_frame(AVCodecContext * avctx,
int blockstodecode;
int bytes_used;
- if (buf_size == 0 && !s->samples) {
- *data_size = 0;
- return 0;
- }
-
/* should not happen but who knows */
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);