1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Mike Scheutzow 2012-06-08 10:24:09 -04:00 committed by Michael Niedermayer
parent 134d0f7119
commit 1be7bfdd2b

View File

@ -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;