~ubuntu-branches/ubuntu/vivid/libav/vivid

« back to all changes in this revision

Viewing changes to libavformat/txd.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2013-10-22 23:24:08 UTC
  • mfrom: (1.3.36 sid)
  • Revision ID: package-import@ubuntu.com-20131022232408-b8tvvn4pyzri9mi3
Tags: 6:9.10-1ubuntu1
* Build all -extra flavors from this source package, as libav got demoted
  from main to universe, cf LP: #1243235
* Simplify debian/rules to follow exactly the code that debian executes
* New upstream (LP: #1180288) fixes lots of security issues (LP: #1242802)
* Merge from unstable, remaining changes:
  - build-depend on libtiff5-dev rather than libtiff4-dev,
    avoids FTBFS caused by imlib
  - follow the regular debian codepaths

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    return 0;
38
38
}
39
39
 
40
 
static int txd_read_header(AVFormatContext *s, AVFormatParameters *ap) {
 
40
static int txd_read_header(AVFormatContext *s) {
41
41
    AVStream *st;
42
42
 
43
43
    st = avformat_new_stream(s, NULL);
44
44
    if (!st)
45
45
        return AVERROR(ENOMEM);
46
46
    st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
47
 
    st->codec->codec_id = CODEC_ID_TXD;
 
47
    st->codec->codec_id = AV_CODEC_ID_TXD;
48
48
    st->codec->time_base.den = 5;
49
49
    st->codec->time_base.num = 1;
50
50
    /* the parameters will be extracted from the compressed bitstream */