aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-09-27 17:21:32 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-10-26 16:00:37 -0400
commit345d15d2f9430ea9667b15b9faca09e12ba41d28 (patch)
tree44de1d2bc548635dd5097728dfc75b8f47809ecb
parent402c98783d2818311dbfdd98f6287f27e9a4d809 (diff)
downloadffmpeg-345d15d2f9430ea9667b15b9faca09e12ba41d28.tar.gz
libopencore-amr: remove unneeded buf_size==0 check.
avcodec_decode_audio3() already checks it before sending the packet to the decoder.
-rw-r--r--libavcodec/libopencore-amr.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c
index 22889bc240..6c54a1d118 100644
--- a/libavcodec/libopencore-amr.c
+++ b/libavcodec/libopencore-amr.c
@@ -274,10 +274,6 @@ static int amr_wb_decode_frame(AVCodecContext *avctx, void *data,
int packet_size;
static const uint8_t block_size[16] = {18, 24, 33, 37, 41, 47, 51, 59, 61, 6, 6, 0, 0, 0, 1, 1};
- if (!buf_size)
- /* nothing to do */
- return 0;
-
mode = (buf[0] >> 3) & 0x000F;
packet_size = block_size[mode];