~ubuntu-branches/ubuntu/raring/libav/raring-security

« back to all changes in this revision

Viewing changes to debian/patches/post-0.7.1/0012-adts-Fix-PCE-copying.patch

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2011-10-01 00:22:07 UTC
  • mfrom: (1.3.8 sid)
  • Revision ID: package-import@ubuntu.com-20111001002207-tnxz39i0rwr5ufy9
Tags: 4:0.7.2-1ubuntu1
* Merge from debian, remaining changes:
  - don't build against libfaad, libdirac, librtmp and libopenjpeg,
    lame, xvid, x264  (all in universe)
  - not installing into multiarch directories
* This new upstream release has basically merged in all 70 patches that
  are present in 4:0.7.1-7ubuntu2, plus some additional, similarily
  focused ones.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.
5
 
 
6
 
Parse the extension flag bit when reading the MPEG4 AudioSpecificConfig.
7
 
 
8
 
This has nothing to do with SBR/PS contradictory to what was noted when it was removed.
9
 
(cherry picked from commit 7f01a4192cdf4565eadee457f76e6b5196e35e0b)
10
 
 
11
 
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12
 
---
13
 
 libavformat/adtsenc.c |    4 ++++
14
 
 1 files changed, 4 insertions(+), 0 deletions(-)
15
 
 
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");
22
 
         return -1;
23
 
     }
24
 
+    if (get_bits(&gb, 1)) {
25
 
+        av_log(s, AV_LOG_ERROR, "Extension flag is not allowed in ADTS\n");
26
 
+        return -1;
27
 
+    }
28
 
     if (!adts->channel_conf) {
29
 
         init_put_bits(&pb, adts->pce_data, MAX_PCE_SIZE);
30
 
 
31
 
1.7.4.1
32