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

spyfeng subversion at mplayerhq.hu
Wed Jun 10 19:45:23 CEST 2009


Author: spyfeng
Date: Wed Jun 10 19:45:23 2009
New Revision: 4404

Log:
remove useless code because the indexes are keyframe,
we will handle AVSEEK_FLAG_ANY flag later.

Modified:
   seek_api/mpeg.c

Modified: seek_api/mpeg.c
==============================================================================
--- seek_api/mpeg.c	Wed Jun 10 19:40:15 2009	(r4403)
+++ seek_api/mpeg.c	Wed Jun 10 19:45:23 2009	(r4404)
@@ -665,14 +665,6 @@ static int mpegps_read_seek(struct AVFor
 
             if (pts == ts) { // find the target timestamp
                 goto success;
-            } else if (pts < ts){ // seek around to get the keyframe, then seek there
-                if (find_keyframe(s, stream_index, &pos,&pts,ts, flags) == 0) {
-                    url_fseek(s->pb, pos, SEEK_SET);
-                    goto success;
-                } else {
-                    av_update_cur_dts(s, st, pts);
-                    return -1;
-                }
             }
         }
      }


More information about the FFmpeg-soc mailing list