[FFmpeg-soc] [soc]: r5358 - concat/libavformat/playlist.c
gkovacs
subversion at mplayerhq.hu
Sun Aug 30 00:52:37 CEST 2009
Author: gkovacs
Date: Sun Aug 30 00:52:37 2009
New Revision: 5358
Log:
aesthetics for variable declaration and assignment
Modified:
concat/libavformat/playlist.c
Modified: concat/libavformat/playlist.c
==============================================================================
--- concat/libavformat/playlist.c Sun Aug 30 00:51:19 2009 (r5357)
+++ concat/libavformat/playlist.c Sun Aug 30 00:52:37 2009 (r5358)
@@ -72,14 +72,15 @@ AVFormatContext *ff_playlist_alloc_conca
int ff_playlist_set_streams(AVPlaylistContext *ctx)
{
- unsigned int i;
+ unsigned int i, offset;
AVFormatContext *s, *ic;
- unsigned int offset = 0;
if (!(s = ctx->master_formatcontext))
return 0;
ic = ctx->formatcontext_list[ctx->pe_curidx];
if (ctx->pe_curidx > 0)
offset = ctx->nb_streams_list[ctx->pe_curidx - 1];
+ else
+ offset = 0;
ic->iformat->read_header(ic, NULL);
for (i = 0; i < ic->nb_streams; ++i) {
s->streams[offset + i] = ic->streams[i];
More information about the FFmpeg-soc
mailing list