[FFmpeg-cvslog] r16717 - trunk/ffmpeg.c

michael subversion
Thu Jan 22 13:04:01 CET 2009


Author: michael
Date: Thu Jan 22 13:04:01 2009
New Revision: 16717

Log:
Handle av_read_frame() EAGAIN return.

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Thu Jan 22 01:31:26 2009	(r16716)
+++ trunk/ffmpeg.c	Thu Jan 22 13:04:01 2009	(r16717)
@@ -2100,7 +2100,10 @@ static int av_encode(AVFormatContext **o
 
         /* read a frame from it and output it in the fifo */
         is = input_files[file_index];
-        if (av_read_frame(is, &pkt) < 0) {
+        ret= av_read_frame(is, &pkt);
+        if(ret == AVERROR(EAGAIN))
+            continue;
+        if (ret < 0) {
             file_table[file_index].eof_reached = 1;
             if (opt_shortest)
                 break;




More information about the ffmpeg-cvslog mailing list