[FFmpeg-soc] [soc]: r4547 - seek_api/mpeg.c

spyfeng subversion at mplayerhq.hu
Mon Jun 29 18:42:21 CEST 2009


Author: spyfeng
Date: Mon Jun 29 18:42:21 2009
New Revision: 4547

Log:
Don't update the dts when seek failed.

Modified:
   seek_api/mpeg.c

Modified: seek_api/mpeg.c
==============================================================================
--- seek_api/mpeg.c	Mon Jun 29 17:55:18 2009	(r4546)
+++ seek_api/mpeg.c	Mon Jun 29 18:42:21 2009	(r4547)
@@ -705,10 +705,10 @@ static int mpegps_read_seek(struct AVFor
         return -1;
     }
 success:
-    av_update_cur_dts(s, st, pts);
-    if (pts <= max_ts && pts >= min_ts)
+    if (pts <= max_ts && pts >= min_ts) {
+        av_update_cur_dts(s, st, pts);
         return 0;
-    else {
+    } else {
         av_log(s, AV_LOG_ERROR,"The target pts = %"PRId64" is out of range. min_ts = %"PRId64", max_ts = %"PRId64"\n", pts, min_ts, max_ts);
         return -1;
     }


More information about the FFmpeg-soc mailing list