[FFmpeg-soc] [soc]: r4890 - concat/libavformat/concatgen.c

gkovacs subversion at mplayerhq.hu
Sat Aug 1 05:39:47 CEST 2009


Author: gkovacs
Date: Sat Aug  1 05:39:47 2009
New Revision: 4890

Log:
added code comments to ff_concategne_read_packet

Modified:
   concat/libavformat/concatgen.c

Modified: concat/libavformat/concatgen.c
==============================================================================
--- concat/libavformat/concatgen.c	Sat Aug  1 05:33:20 2009	(r4889)
+++ concat/libavformat/concatgen.c	Sat Aug  1 05:39:47 2009	(r4890)
@@ -65,7 +65,9 @@ int ff_concatgen_read_packet(AVFormatCon
                 ctx->pe_curidx = ff_playlist_stream_index_from_time(ctx, ff_playlist_time_offset(ctx->durations, ctx->pe_curidx));
                 ff_playlist_populate_context(ctx, ctx->pe_curidx);
                 ff_playlist_set_streams(s);
+                // have_switched_streams is set to avoid infinite loop
                 have_switched_streams = 1;
+                // duration is updated in case it's checked by a parent demuxer (chained concat demuxers)
                 s->duration = 0;
                 for (i = 0; i < ctx->pe_curidx; ++i)
                     s->duration += ctx->durations[i];


More information about the FFmpeg-soc mailing list