projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f26f3d
)
alacdec: remove unneeded validation of setinfo_sample_size.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 5 Oct 2011 23:46:46 +0000
(19:46 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 26 Oct 2011 15:50:16 +0000
(11:50 -0400)
It is already done when using it to set sample_fmt.
libavcodec/alac.c
patch
|
blob
|
history
diff --git
a/libavcodec/alac.c
b/libavcodec/alac.c
index
8930abd
..
5e376ac
100644
(file)
--- a/
libavcodec/alac.c
+++ b/
libavcodec/alac.c
@@
-116,10
+116,6
@@
static int alac_set_info(ALACContext *alac)
alac->setinfo_max_samples_per_frame = bytestream_get_be32(&ptr);
ptr++; /* ??? */
alac->setinfo_sample_size = *ptr++;
- if (alac->setinfo_sample_size > 32) {
- av_log(alac->avctx, AV_LOG_ERROR, "setinfo_sample_size too large\n");
- return -1;
- }
alac->setinfo_rice_historymult = *ptr++;
alac->setinfo_rice_initialhistory = *ptr++;
alac->setinfo_rice_kmodifier = *ptr++;