Commit 345d15d2 authored by Justin Ruggles's avatar Justin Ruggles

libopencore-amr: remove unneeded buf_size==0 check.

avcodec_decode_audio3() already checks it before sending the packet to the
decoder.
parent 402c9878
......@@ -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];
......
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