Revision b7effd4e libavformat/ivfdec.c

View differences:

libavformat/ivfdec.c
36 36
    AVStream *st;
37 37
    AVRational time_base;
38 38

  
39
    get_le32(s->pb); // DKIF
40
    get_le16(s->pb); // version
41
    get_le16(s->pb); // header size
39
    avio_rl32(s->pb); // DKIF
40
    avio_rl16(s->pb); // version
41
    avio_rl16(s->pb); // header size
42 42

  
43 43
    st = av_new_stream(s, 0);
44 44
    if (!st)
......
46 46

  
47 47

  
48 48
    st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
49
    st->codec->codec_tag  = get_le32(s->pb);
49
    st->codec->codec_tag  = avio_rl32(s->pb);
50 50
    st->codec->codec_id   = ff_codec_get_id(ff_codec_bmp_tags, st->codec->codec_tag);
51
    st->codec->width      = get_le16(s->pb);
52
    st->codec->height     = get_le16(s->pb);
53
    time_base.den         = get_le32(s->pb);
54
    time_base.num         = get_le32(s->pb);
55
    st->duration          = get_le64(s->pb);
51
    st->codec->width      = avio_rl16(s->pb);
52
    st->codec->height     = avio_rl16(s->pb);
53
    time_base.den         = avio_rl32(s->pb);
54
    time_base.num         = avio_rl32(s->pb);
55
    st->duration          = avio_rl64(s->pb);
56 56

  
57 57
    st->need_parsing      = AVSTREAM_PARSE_HEADERS;
58 58

  
......
68 68

  
69 69
static int read_packet(AVFormatContext *s, AVPacket *pkt)
70 70
{
71
    int ret, size = get_le32(s->pb);
72
    int64_t   pts = get_le64(s->pb);
71
    int ret, size = avio_rl32(s->pb);
72
    int64_t   pts = avio_rl64(s->pb);
73 73

  
74 74
    ret = av_get_packet(s->pb, pkt, size);
75 75
    pkt->stream_index = 0;

Also available in: Unified diff