[FFmpeg-devel] [PATCH 2/3] Avoid to set the loglevel to AV_LOG_DEBUG if avcodec_opts->debug or avformat_opts->debug is set.
Stefano Sabatini
stefano.sabatini-lala
Fri Sep 24 15:16:28 CEST 2010
Module context options should be orthogonal to the global options,
also prevent a crash if avcodec_opts[0] or avformat_opts is not set.
---
cmdutils.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/cmdutils.c b/cmdutils.c
index 4a643ae..915a077 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -230,8 +230,6 @@ int opt_default(const char *opt, const char *arg){
opt_names= av_realloc(opt_names, sizeof(void*)*(opt_name_count+1));
opt_names[opt_name_count++]= o->name;
- if(avcodec_opts[0]->debug || avformat_opts->debug)
- av_log_set_level(AV_LOG_DEBUG);
return 0;
}
--
1.7.1
More information about the ffmpeg-devel
mailing list