提交 2fb6e1e7 编写于 作者: M Michael Niedermayer 提交者: Vittorio Giovara

segafilm: Fix current_sample after seeking and avio_seek return type

Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 62b4a6f1
......@@ -296,13 +296,14 @@ static int film_read_seek(AVFormatContext *s, int stream_index, int64_t timestam
{
FilmDemuxContext *film = s->priv_data;
AVStream *st = s->streams[stream_index];
int64_t pos;
int ret = av_index_search_timestamp(st, timestamp, flags);
if (ret < 0)
return ret;
ret = avio_seek(s->pb, st->index_entries[ret].pos, SEEK_SET);
if (ret < 0)
return ret;
pos = avio_seek(s->pb, st->index_entries[ret].pos, SEEK_SET);
if (pos < 0)
return pos;
film->current_sample = ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册