Revert "cmdutils: allow specifying the file for -report"
This reverts commit 841bf0ef24
.
This does not fully work as the file is used before the filename is parsed
so not all information is written in the specified file.
This commit is contained in:

committed by
Nicolas George

parent
50d3a1a962
commit
4e6fa5be3c
11
cmdutils.c
11
cmdutils.c
@@ -528,17 +528,6 @@ int opt_loglevel(void *optctx, const char *opt, const char *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int opt_report_file(void *optctx, const char *opt, const char *arg)
|
||||
{
|
||||
report_file = fopen(arg, "w");
|
||||
if (!report_file) {
|
||||
av_log(NULL, AV_LOG_ERROR, "Failed to open report \"%s\": %s\n",
|
||||
arg, strerror(errno));
|
||||
return AVERROR(errno);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int opt_report(const char *opt)
|
||||
{
|
||||
char filename[64];
|
||||
|
Reference in New Issue
Block a user