aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-10-10 13:07:19 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-10-26 11:50:17 -0400
commit30f3e7b524cc31155db7a1b0057f651312f6341e (patch)
tree35070772afabc6c81779d64325d197a70529e846 /libavcodec
parent68f7e9cd8e29d0331f783844bb92d64d208aa861 (diff)
downloadffmpeg-30f3e7b524cc31155db7a1b0057f651312f6341e.tar.gz
alacdec: remove unneeded NULL or zero-size packet checks.
This is already done in avcodec_decode_audio3()
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/alac.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 4b442196e9..1056e6c8f4 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -368,10 +368,6 @@ static int alac_decode_frame(AVCodecContext *avctx,
uint8_t interlacing_leftweight;
int i, ch;
- /* short-circuit null buffers */
- if (!inbuffer || !input_buffer_size)
- return -1;
-
init_get_bits(&alac->gb, inbuffer, input_buffer_size * 8);
channels = get_bits(&alac->gb, 3) + 1;