Commit 1be7bfdd authored by Mike Scheutzow's avatar Mike Scheutzow Committed by 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: 's avatarMike Scheutzow <mjs973@optonline.net>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 134d0f71
...@@ -1746,6 +1746,7 @@ duplicate_frame: ...@@ -1746,6 +1746,7 @@ duplicate_frame:
pkt.flags |= AV_PKT_FLAG_KEY; pkt.flags |= AV_PKT_FLAG_KEY;
write_frame(s, &pkt, ost); write_frame(s, &pkt, ost);
video_size += pkt.size;
} else { } else {
int got_packet; int got_packet;
AVFrame big_picture; AVFrame big_picture;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment