1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

Log file and Windows patch by ("Gael Chardon" <gael-announcements+ffmpeg at 4now dot net>)

Originally committed as revision 2781 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Gael Chardon 2004-02-14 15:04:01 +00:00 committed by Michael Niedermayer
parent e9a4834a7d
commit 4776fa926f

View File

@ -1320,7 +1320,7 @@ static int av_encode(AVFormatContext **output_files,
fprintf(stderr, "Could not allocate log buffer\n");
exit(1);
}
fread(logbuffer, 1, size, f);
size = fread(logbuffer, 1, size, f);
fclose(f);
logbuffer[size] = '\0';
codec->stats_in = logbuffer;