~ubuntu-branches/ubuntu/maverick/vlc/maverick

« back to all changes in this revision

Viewing changes to extras/faad2/common/mp4v2/atom_stbl.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello, Mario Limonciello, Martin Hamrle
  • Date: 2008-03-25 20:08:07 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20080325200807-64amsvla1tnnen5s
Tags: 0.8.6.release.e+x264svn20071224+faad2.6.1-0ubuntu1
[ Mario Limonciello ]
* New upstream version. (LP: #206918)
  - New versioning scheme to bring attention to the fact that
    faad and x264 are in the .orig.tar.gz.
  - Fixes 6 CVEs (LP: #196452)
    + CVE: 2007-6681
    + CVE: 2007-6682
    + CVE: 2007-6683
    + CVE: 2008-0295
    + CVE: 2008-0296
* Drop 021_CVE-2008-0984 as it's included upstream.
* debian/rules:
  - Adjust items touched for faad2 when building.
  - Apply all faad2 patches when building
* debian/control:
  - Add dpatch, libfaad-dev, and autotools-dev to build-depends to allow 
    faad2 to build again.
  - Add automake, cvs, and libtool to build depends (now needed for building VLC)

[ Martin Hamrle ]
 * Add new package with pulse output plugin (LP: #196417)
   - debian/patches/030_pulse.diff:
     + patch from upstream trunk to support pulseaudio output
   - debian/rules:
     + enable pulseaudio
   - debian/control:
     + add dependencies to libpulse-dev
     + new package description
   - Creates a NEW binary package, requiring FFe (LP: #204050)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * The contents of this file are subject to the Mozilla Public
3
 
 * License Version 1.1 (the "License"); you may not use this file
4
 
 * except in compliance with the License. You may obtain a copy of
5
 
 * the License at http://www.mozilla.org/MPL/
6
 
 * 
7
 
 * Software distributed under the License is distributed on an "AS
8
 
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
 
 * implied. See the License for the specific language governing
10
 
 * rights and limitations under the License.
11
 
 * 
12
 
 * The Original Code is MPEG4IP.
13
 
 * 
14
 
 * The Initial Developer of the Original Code is Cisco Systems Inc.
15
 
 * Portions created by Cisco Systems Inc. are
16
 
 * Copyright (C) Cisco Systems Inc. 2001.  All Rights Reserved.
17
 
 * 
18
 
 * Contributor(s): 
19
 
 *              Dave Mackie             dmackie@cisco.com
20
 
 */
21
 
 
22
 
#include "mp4common.h"
23
 
 
24
 
MP4StblAtom::MP4StblAtom() 
25
 
        : MP4Atom("stbl") 
26
 
{
27
 
        ExpectChildAtom("stsd", Required, OnlyOne);
28
 
        ExpectChildAtom("stts", Required, OnlyOne);
29
 
        ExpectChildAtom("ctts", Optional, OnlyOne);
30
 
        ExpectChildAtom("stsz", Required, OnlyOne);
31
 
        ExpectChildAtom("stsc", Required, OnlyOne);
32
 
        ExpectChildAtom("stco", Optional, OnlyOne);
33
 
        ExpectChildAtom("co64", Optional, OnlyOne);
34
 
        ExpectChildAtom("stss", Optional, OnlyOne);
35
 
        ExpectChildAtom("stsh", Optional, OnlyOne);
36
 
        ExpectChildAtom("stdp", Optional, OnlyOne);
37
 
}
38
 
 
39
 
void MP4StblAtom::Generate()
40
 
{
41
 
        // as usual
42
 
        MP4Atom::Generate();
43
 
 
44
 
        // but we also need one of the chunk offset atoms
45
 
        MP4Atom* pChunkOffsetAtom;
46
 
        if (m_pFile->Use64Bits()) {
47
 
                pChunkOffsetAtom = CreateAtom("co64");
48
 
        } else {
49
 
                pChunkOffsetAtom = CreateAtom("stco");
50
 
        }
51
 
 
52
 
        AddChildAtom(pChunkOffsetAtom);
53
 
 
54
 
        // and ask it to self generate
55
 
        pChunkOffsetAtom->Generate();
56
 
}
57