Revision dd80be5b

View differences:

libavformat/bink.c
241 241
    return 0;
242 242
}
243 243

  
244
static int read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
245
{
246
    BinkDemuxContext *bink = s->priv_data;
247
    AVStream *vst = s->streams[0];
248

  
249
    /* seek to the first frame */
250
    url_fseek(s->pb, vst->index_entries[0].pos, SEEK_SET);
251
    bink->video_pts = 0;
252
    memset(bink->audio_pts, 0, sizeof(bink->audio_pts));
253
    bink->current_track = -1;
254
    return 0;
255
}
256

  
244 257
AVInputFormat bink_demuxer = {
245 258
    "bink",
246 259
    NULL_IF_CONFIG_SMALL("Bink"),
......
248 261
    probe,
249 262
    read_header,
250 263
    read_packet,
264
    NULL,
265
    read_seek,
251 266
};

Also available in: Unified diff