mpegts: use seek_back() for all seek backs
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 30 Jun 2013 13:46:04 +0000 (15:46 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 30 Jun 2013 14:23:50 +0000 (16:23 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mpegts.c

index e2e734e..2048ad8 100644 (file)
@@ -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;