avcodec/ac3dec: Check expacc
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 3 Nov 2016 10:30:50 +0000 (11:30 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 3 Nov 2016 21:05:46 +0000 (22:05 +0100)
commitcee1f4c06986941bd31cc19f4333d436394aa6f9
tree19967bb54c2bf4592c4b5185791cafc251380a71
parent0bd1be65e88d6a4f367e698d7a2b105424eb1905
avcodec/ac3dec: Check expacc

this is somewhat a magic number, which can be understood from reading section
"7.1.2 Exponent Strategy" of the ac3 specification, in short:
Three exponents each represented as number 0-4 are grouped together and
base-5 encoded, so the maximal correct value is 25*4 + 5*4 + 4 = 124.

Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ac3dec.c