diff options
Diffstat (limited to 'stream/stream_lavf.c')
-rw-r--r-- | stream/stream_lavf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c index 0526d701f9..cedea2fb4b 100644 --- a/stream/stream_lavf.c +++ b/stream/stream_lavf.c @@ -60,8 +60,7 @@ static int seek(stream_t *s, int64_t newpos) AVIOContext *avio = s->priv; if (!avio) return -1; - s->pos = newpos; - if (avio_seek(avio, s->pos, SEEK_SET) < 0) { + if (avio_seek(avio, newpos, SEEK_SET) < 0) { return 0; } return 1; |