Commit 4d6d9407 authored by michael's avatar michael

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2781 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 24425de7
...@@ -1320,7 +1320,7 @@ static int av_encode(AVFormatContext **output_files, ...@@ -1320,7 +1320,7 @@ static int av_encode(AVFormatContext **output_files,
fprintf(stderr, "Could not allocate log buffer\n"); fprintf(stderr, "Could not allocate log buffer\n");
exit(1); exit(1);
} }
fread(logbuffer, 1, size, f); size = fread(logbuffer, 1, size, f);
fclose(f); fclose(f);
logbuffer[size] = '\0'; logbuffer[size] = '\0';
codec->stats_in = logbuffer; codec->stats_in = logbuffer;
......
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