Revision e356fc57 libavformat/bink.c

View differences:

libavformat/bink.c
98 98
        return AVERROR(EIO);
99 99
    }
100 100

  
101
    url_fskip(pb, 4);
101
    avio_seek(pb, 4, SEEK_CUR);
102 102

  
103 103
    vst->codec->width  = avio_rl32(pb);
104 104
    vst->codec->height = avio_rl32(pb);
......
127 127
    }
128 128

  
129 129
    if (bink->num_audio_tracks) {
130
        url_fskip(pb, 4 * bink->num_audio_tracks);
130
        avio_seek(pb, 4 * bink->num_audio_tracks, SEEK_CUR);
131 131

  
132 132
        for (i = 0; i < bink->num_audio_tracks; i++) {
133 133
            ast = av_new_stream(s, 1);
......
169 169
                           keyframe ? AVINDEX_KEYFRAME : 0);
170 170
    }
171 171

  
172
    url_fskip(pb, 4);
172
    avio_seek(pb, 4, SEEK_CUR);
173 173

  
174 174
    bink->current_track = -1;
175 175
    return 0;

Also available in: Unified diff