[FFmpeg-soc] [soc]: r5285 - concat/libavformat/avplaylist.c

gkovacs subversion at mplayerhq.hu
Wed Aug 26 04:40:36 CEST 2009


Author: gkovacs
Date: Wed Aug 26 04:40:35 2009
New Revision: 5285

Log:
start search in av_playlist_stream_index_from_time from pe_curidx for improved performance

Modified:
   concat/libavformat/avplaylist.c

Modified: concat/libavformat/avplaylist.c
==============================================================================
--- concat/libavformat/avplaylist.c	Wed Aug 26 03:49:53 2009	(r5284)
+++ concat/libavformat/avplaylist.c	Wed Aug 26 04:40:35 2009	(r5285)
@@ -161,9 +161,8 @@ int av_playlist_stream_index_from_time(A
                                        int64_t pts,
                                        int64_t *localpts)
 {
-    int i;
-    int64_t total;
-    i = total = 0;
+    int64_t total = 0;
+    int i = ctx->pe_curidx;
     while (pts >= total) {
         if (i >= ctx->pelist_size)
             break;


More information about the FFmpeg-soc mailing list