OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68f7e9c
)
alacdec: remove unneeded NULL or zero-size packet checks.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Mon, 10 Oct 2011 17:07:19 +0000
(13:07 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 26 Oct 2011 15:50:17 +0000
(11:50 -0400)
This is already done in avcodec_decode_audio3()
libavcodec/alac.c
patch
|
blob
|
history
diff --git
a/libavcodec/alac.c
b/libavcodec/alac.c
index
4b44219
..
1056e6c
100644
(file)
--- 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;