[FFmpeg-cvslog] ffmpeg.c: fix erroneous "Output file is empty" message.

Mike Scheutzow git at videolan.org
Fri Jun 8 18:30:25 CEST 2012


ffmpeg | branch: master | Mike Scheutzow <mjs973 at optonline.net> | Fri Jun  8 10:24:09 2012 -0400| [1be7bfdd2bc65f841391e7141ea08031c075833f] | committer: Michael Niedermayer

ffmpeg.c: fix erroneous "Output file is empty" message.

This message is printed whenever the RAWVIDEO codec is used, whether the
output file contains any frames or not. Test command:
./ffmpeg -i infile.y4m outfile.y4m

Signed-off-by: Mike Scheutzow <mjs973 at optonline.net>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1be7bfdd2bc65f841391e7141ea08031c075833f
---

 ffmpeg.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index 87c3f7a..9575813 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1746,6 +1746,7 @@ duplicate_frame:
         pkt.flags |= AV_PKT_FLAG_KEY;
 
         write_frame(s, &pkt, ost);
+        video_size += pkt.size;
     } else {
         int got_packet;
         AVFrame big_picture;



More information about the ffmpeg-cvslog mailing list