Parse the extension flag bit when reading the MPEG4 AudioSpecificConfig.
This has nothing to do with SBR/PS contradictory to what was noted when it was removed.
| ... | ... |
@@ -59,6 +59,10 @@ int ff_adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, uint8_t *buf |
| 59 | 59 |
av_log(s, AV_LOG_ERROR, "Scalable configurations are not allowed in ADTS\n"); |
| 60 | 60 |
return -1; |
| 61 | 61 |
} |
| 62 |
+ if (get_bits(&gb, 1)) {
|
|
| 63 |
+ av_log(s, AV_LOG_ERROR, "Extension flag is not allowed in ADTS\n"); |
|
| 64 |
+ return -1; |
|
| 65 |
+ } |
|
| 62 | 66 |
if (!adts->channel_conf) {
|
| 63 | 67 |
init_put_bits(&pb, adts->pce_data, MAX_PCE_SIZE); |
| 64 | 68 |
|