~ubuntu-branches/ubuntu/saucy/gst-libav1.0/saucy-proposed

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavformat/vc1test.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-07-30 09:00:15 UTC
  • mfrom: (1.1.16) (7.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20130730090015-sc1ou2yssu7q5w4e
Tags: 1.1.3-1
* New upstream development snapshot:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.1.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    return AVPROBE_SCORE_MAX/2;
43
43
}
44
44
 
45
 
static int vc1t_read_header(AVFormatContext *s,
46
 
                           AVFormatParameters *ap)
 
45
static int vc1t_read_header(AVFormatContext *s)
47
46
{
48
47
    AVIOContext *pb = s->pb;
49
48
    AVStream *st;
60
59
        return -1;
61
60
 
62
61
    st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
63
 
    st->codec->codec_id = CODEC_ID_WMV3;
 
62
    st->codec->codec_id = AV_CODEC_ID_WMV3;
64
63
 
65
64
    st->codec->extradata = av_malloc(VC1_EXTRADATA_SIZE);
66
65
    st->codec->extradata_size = VC1_EXTRADATA_SIZE;
112
111
 
113
112
AVInputFormat ff_vc1t_demuxer = {
114
113
    .name           = "vc1test",
115
 
    .long_name      = NULL_IF_CONFIG_SMALL("VC-1 test bitstream format"),
 
114
    .long_name      = NULL_IF_CONFIG_SMALL("VC-1 test bitstream"),
116
115
    .read_probe     = vc1t_probe,
117
116
    .read_header    = vc1t_read_header,
118
117
    .read_packet    = vc1t_read_packet,
119
 
    .flags = AVFMT_GENERIC_INDEX,
 
118
    .flags          = AVFMT_GENERIC_INDEX,
120
119
};