From 4e99660493110bf546bd6ab14a08755633400cf8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 30 Jun 2013 15:46:04 +0200 Subject: [PATCH] mpegts: use seek_back() for all seek backs Signed-off-by: Michael Niedermayer --- libavformat/mpegts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;