>From 12b022b48dabeab8ff18efc1c6798b8433c795c1 Mon Sep 17 00:00:00 2001 From: Mike Scheutzow 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 --- ffmpeg.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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; -- 1.7.4