Author: spyfeng
Date: Mon Jun  8 16:16:45 2009
New Revision: 4393

Log:
because we don't need to seek to the keyframe, 
in order to get the pts around the target timestamp,
introduce AVSEEK_FLAG_ANY flag

Modified:
   seek_api/mpeg.c

Modified: seek_api/mpeg.c
==============================================================================
--- seek_api/mpeg.c     Mon Jun  8 16:13:46 2009        (r4392)
+++ seek_api/mpeg.c     Mon Jun  8 16:16:45 2009        (r4393)
@@ -662,7 +662,7 @@ static int mpegps_read_seek1(struct AVFo
 
     if (st->index_entries) {
         AVIndexEntry *e;
-        index = av_index_search_timestamp(st, ts, flags | 
AVSEEK_FLAG_BACKWARD);
+        index = av_index_search_timestamp(st, ts, flags | AVSEEK_FLAG_ANY);
 
         if (index >= 0) {
             e = &st->index_entries[index];
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to