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

gkovacs subversion at mplayerhq.hu
Mon Aug 24 09:00:37 CEST 2009


Author: gkovacs
Date: Mon Aug 24 09:00:37 2009
New Revision: 5244

Log:
don't switch AVFormatContext upon EAGAIN

Modified:
   concat/libavformat/concatgen.c

Modified: concat/libavformat/concatgen.c
==============================================================================
--- concat/libavformat/concatgen.c	Mon Aug 24 08:38:39 2009	(r5243)
+++ concat/libavformat/concatgen.c	Mon Aug 24 09:00:37 2009	(r5244)
@@ -68,7 +68,8 @@ int ff_concatgen_read_packet(AVFormatCon
             break;
         } else {
             if (!have_switched_streams &&
-                ctx->pe_curidx < ctx->pelist_size - 1) {
+                ctx->pe_curidx < ctx->pelist_size - 1 &&
+                ret != AVERROR(EAGAIN)) {
             // TODO switch from AVERROR_EOF to AVERROR_EOS
             // -32 AVERROR_EOF for avi, -51 for ogg
 


More information about the FFmpeg-soc mailing list