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

gkovacs subversion at mplayerhq.hu
Wed Aug 26 08:32:17 CEST 2009


Author: gkovacs
Date: Wed Aug 26 08:32:17 2009
New Revision: 5293

Log:
use more understandable variable names in av_playlist_localstidx_from_streamidx

Modified:
   concat/libavformat/avplaylist.c

Modified: concat/libavformat/avplaylist.c
==============================================================================
--- concat/libavformat/avplaylist.c	Wed Aug 26 08:10:37 2009	(r5292)
+++ concat/libavformat/avplaylist.c	Wed Aug 26 08:32:17 2009	(r5293)
@@ -148,11 +148,11 @@ void av_playlist_relative_paths(char **f
 
 int av_playlist_localstidx_from_streamidx(AVPlaylistContext *ctx, int stream_index)
 {
-    unsigned int i, cur, prev;
-    cur = prev = 0;
-    for (i = 0; stream_index >= cur; ++i) {
-        prev = cur;
-        cur = ctx->nb_streams_list[i];
+    unsigned int i, stream_total, stream_offset;
+    stream_total = stream_offset = 0;
+    for (i = 0; stream_index >= stream_total; ++i) {
+        stream_offset = stream_total;
+        stream_total = ctx->nb_streams_list[i];
     }
-    return stream_index - prev;
+    return stream_index - stream_offset;
 }


More information about the FFmpeg-soc mailing list