summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
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;