Skip to content
Snippets Groups Projects
Commit cee1f4c0 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

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: default avatarAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 0bd1be65
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment