aac: Relax reserved_bit validation
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 3 Mar 2015 19:38:32 +0000 (19:38 +0000)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 4 Mar 2015 16:36:16 +0000 (16:36 +0000)
commit87e85a133f3ce2f037b90e9c7bbca99951df6c15
tree9dd099c081b66e1308ddb3792d5eb5b0691a2a7a
parent25f613f8be3b51e4396b93cda131e4631ba54302
aac: Relax reserved_bit validation

Although the specification mandates this bit to zero, it may happen
that software tools incorrectly flip it to one, invalidating a possibly
valid stream.

Relax this restriction, by failing only when AV_EF_BITSTREAM is set.
This behaviour is similar to aac decoders in Firefox and Quicktime.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavcodec/aacdec.c