1
From 6107543d4e4f6bfa7810e3696ab57553f7257b4b Mon Sep 17 00:00:00 2001
2
From: Alex Converse <alex.converse@gmail.com>
3
Date: Wed, 29 Jun 2011 13:41:47 -0700
4
Subject: [PATCH 12/70] adts: Fix PCE copying.
6
Parse the extension flag bit when reading the MPEG4 AudioSpecificConfig.
8
This has nothing to do with SBR/PS contradictory to what was noted when it was removed.
9
(cherry picked from commit 7f01a4192cdf4565eadee457f76e6b5196e35e0b)
11
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13
libavformat/adtsenc.c | 4 ++++
14
1 files changed, 4 insertions(+), 0 deletions(-)
16
diff --git a/libavformat/adtsenc.c b/libavformat/adtsenc.c
17
index e858a81..75649e2 100644
18
--- a/libavformat/adtsenc.c
19
+++ b/libavformat/adtsenc.c
20
@@ -59,6 +59,10 @@ int ff_adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, uint8_t *buf
21
av_log(s, AV_LOG_ERROR, "Scalable configurations are not allowed in ADTS\n");
24
+ if (get_bits(&gb, 1)) {
25
+ av_log(s, AV_LOG_ERROR, "Extension flag is not allowed in ADTS\n");
28
if (!adts->channel_conf) {
29
init_put_bits(&pb, adts->pce_data, MAX_PCE_SIZE);