This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
libopencore-amr: remove unneeded buf_size==0 check.
avcodec_decode_audio3() already checks it before sending the packet to the decoder.
tags/n0.9
Justin Ruggles
13 years ago
parent
402c98783d
commit
345d15d2f9
1 changed files
with
0 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-4
libavcodec/libopencore-amr.c
+ 0
- 4
libavcodec/libopencore-amr.c
View File
@@ -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];
Write
Preview
Loading…
Cancel
Save