diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index e2e734e32a..2048ad868a 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2080,7 +2080,7 @@ static int mpegts_read_header(AVFormatContext *s) st->start_time / 1000000.0, pcrs[0] / 27e6, ts->pcr_incr); } - avio_seek(pb, pos, SEEK_SET); + seek_back(s, pb, pos); return 0; fail: return -1;