Commit disapeared hunk, must have editied this out by mistake between local debug...
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 2 Feb 2010 21:31:20 +0000 (21:31 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 2 Feb 2010 21:31:20 +0000 (21:31 +0000)
This should fix seeking in TS.

Originally committed as revision 21614 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffplay.c

index 460bfef..0a964f2 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -1076,6 +1076,7 @@ static void video_refresh_timer(void *opaque)
             /* update current video pts */
             is->video_current_pts = vp->pts;
             is->video_current_pts_drift = is->video_current_pts - av_gettime() / 1000000.0;
+            is->video_current_pos = vp->pos;
 
             if(is->subtitle_st) {
                 if (is->subtitle_stream_changed) {