From 1be7bfdd2bc65f841391e7141ea08031c075833f Mon Sep 17 00:00:00 2001 From: Mike Scheutzow <mjs973@optonline.net> Date: Fri, 8 Jun 2012 10:24:09 -0400 Subject: [PATCH] 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@optonline.net> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> --- ffmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffmpeg.c b/ffmpeg.c index 87c3f7a5d34..9575813bca1 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; -- GitLab