From 4776fa926f1417ec928e2be41aa4a3f4bb8eda31 Mon Sep 17 00:00:00 2001 From: Gael Chardon Date: Sat, 14 Feb 2004 15:04:01 +0000 Subject: [PATCH] Log file and Windows patch by ("Gael Chardon" ) Originally committed as revision 2781 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 8f9ad0fe1c..6503e11a41 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -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;