Revision e356fc57 libavformat/bfi.c

View differences:

libavformat/bfi.c
65 65
        return AVERROR(ENOMEM);
66 66

  
67 67
    /* Set the total number of frames. */
68
    url_fskip(pb, 8);
68
    avio_seek(pb, 8, SEEK_CUR);
69 69
    chunk_header           = avio_rl32(pb);
70 70
    bfi->nframes           = avio_rl32(pb);
71 71
    avio_rl32(pb);
72 72
    avio_rl32(pb);
73 73
    avio_rl32(pb);
74 74
    fps                    = avio_rl32(pb);
75
    url_fskip(pb, 12);
75
    avio_seek(pb, 12, SEEK_CUR);
76 76
    vstream->codec->width  = avio_rl32(pb);
77 77
    vstream->codec->height = avio_rl32(pb);
78 78

  
79 79
    /*Load the palette to extradata */
80
    url_fskip(pb, 8);
80
    avio_seek(pb, 8, SEEK_CUR);
81 81
    vstream->codec->extradata      = av_malloc(768);
82 82
    vstream->codec->extradata_size = 768;
83 83
    avio_read(pb, vstream->codec->extradata,

Also available in: Unified diff