avcodec/aacdec_template: Allow duplicated elements
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Oct 2018 11:03:00 +0000 (13:03 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 11 Oct 2018 22:53:14 +0000 (00:53 +0200)
commit8f1524802469cb701040561cd05a9a924dec3627
tree5f04b5de09bca98b1f6645868089fafb0ae65185
parentf7affc6f70cc1bbeec51b1d699e2f17f4ced7362
avcodec/aacdec_template: Allow duplicated elements

Such streams are invalid according to
4.5.2.1 Top level payloads for the audio object types AAC main, AAC SSR, AAC LC and AAC LTP
4.5.2.1.1 Definitions
...cIn the raw_data_block(), several instances of the
same syntactic element may occur, but must have a different 4 bit
element_instance_tag, except for data_stream_element()'s and
fill_element()'s.

Fixes: Ticket7477

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacdec_template.c