diff options
Diffstat (limited to 'libavformat/dhav.c')
-rw-r--r-- | libavformat/dhav.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/dhav.c b/libavformat/dhav.c index 28c476d9c1..5ae39a2a64 100644 --- a/libavformat/dhav.c +++ b/libavformat/dhav.c @@ -433,15 +433,16 @@ static int dhav_read_seek(AVFormatContext *s, int stream_index, { DHAVContext *dhav = s->priv_data; AVStream *st = s->streams[stream_index]; + FFStream *const sti = ffstream(st); int index = av_index_search_timestamp(st, timestamp, flags); int64_t pts; if (index < 0) return -1; - if (avio_seek(s->pb, st->internal->index_entries[index].pos, SEEK_SET) < 0) + if (avio_seek(s->pb, sti->index_entries[index].pos, SEEK_SET) < 0) return -1; - pts = st->internal->index_entries[index].timestamp; + pts = sti->index_entries[index].timestamp; for (int n = 0; n < s->nb_streams; n++) { AVStream *st = s->streams[n]; |