Revision e356fc57 libavformat/filmstripdec.c

View differences:

libavformat/filmstripdec.c
59 59
        return AVERROR_INVALIDDATA;
60 60
    }
61 61

  
62
    url_fskip(pb, 2);
62
    avio_seek(pb, 2, SEEK_CUR);
63 63
    st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
64 64
    st->codec->codec_id   = CODEC_ID_RAWVIDEO;
65 65
    st->codec->pix_fmt    = PIX_FMT_RGBA;
......
84 84
        return AVERROR(EIO);
85 85
    pkt->dts = url_ftell(s->pb) / (st->codec->width * (st->codec->height + film->leading) * 4);
86 86
    pkt->size = av_get_packet(s->pb, pkt, st->codec->width * st->codec->height * 4);
87
    url_fskip(s->pb, st->codec->width * film->leading * 4);
87
    avio_seek(s->pb, st->codec->width * film->leading * 4, SEEK_CUR);
88 88
    if (pkt->size < 0)
89 89
        return pkt->size;
90 90
    pkt->flags |= AV_PKT_FLAG_KEY;

Also available in: Unified diff