git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
402c987
)
libopencore-amr: remove unneeded buf_size==0 check.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Tue, 27 Sep 2011 21:21:32 +0000
(17:21 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 26 Oct 2011 20:00:37 +0000
(16:00 -0400)
avcodec_decode_audio3() already checks it before sending the packet to the
decoder.
libavcodec/libopencore-amr.c
patch
|
blob
|
history
diff --git
a/libavcodec/libopencore-amr.c
b/libavcodec/libopencore-amr.c
index
22889bc
..
6c54a1d
100644
(file)
--- 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];