aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-10-05 19:46:46 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-10-26 11:50:16 -0400
commit47e9c75b36aa533f1c06c063f80cdf6b7f026b03 (patch)
treefa7a928d26e992dd943c1c9d6cccb7b3a35aaf04
parent0f26f3d5c45fa13cd5b2a8bd40d781decdec0272 (diff)
downloadffmpeg-47e9c75b36aa533f1c06c063f80cdf6b7f026b03.tar.gz
alacdec: remove unneeded validation of setinfo_sample_size.
It is already done when using it to set sample_fmt.
-rw-r--r--libavcodec/alac.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 8930abd57e..5e376ac030 100644
--- 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++;