]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - ffmpeg.c
do not write ffm write index by default, detect if file is being written and return EOF
[frescor/ffmpeg.git] / ffmpeg.c
index 14aa07ee87731bc5eb7a30b21124c92c8282dc69..cb15120eee193ddc89588108dbb0d2436d3ce418 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2121,7 +2121,7 @@ static int av_encode(AVFormatContext **output_files,
         /* read a frame from it and output it in the fifo */
         is = input_files[file_index];
         ret= av_read_frame(is, &pkt);
-        if(ret == AVERROR(EAGAIN) && strcmp(is->iformat->name, "ffm")){
+        if(ret == AVERROR(EAGAIN)){
             no_packet[file_index]=1;
             no_packet_count++;
             continue;