Commit 902f8937 authored by Laurent Aimar's avatar Laurent Aimar

* ffmpeg: added a ffmpeg-debug option (control libavcodec debug

messages).
parent cfdc77d4
...@@ -93,6 +93,7 @@ vlc_module_begin(); ...@@ -93,6 +93,7 @@ vlc_module_begin();
add_string( "ffmpeg-pp-name", "default", NULL, LIBAVCODEC_PP_TEXT, add_string( "ffmpeg-pp-name", "default", NULL, LIBAVCODEC_PP_TEXT,
LIBAVCODEC_PP_LONGTEXT, VLC_TRUE ); LIBAVCODEC_PP_LONGTEXT, VLC_TRUE );
#endif #endif
add_integer( "ffmpeg-debug", 0, NULL, DEBUG_TEST, DEBUG_LONGTEST, VLC_TRUE );
/* chroma conversion submodule */ /* chroma conversion submodule */
add_submodule(); add_submodule();
...@@ -154,6 +155,7 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -154,6 +155,7 @@ static int OpenDecoder( vlc_object_t *p_this )
/* *** get a p_context *** */ /* *** get a p_context *** */
p_context = avcodec_alloc_context(); p_context = avcodec_alloc_context();
p_context->debug = config_GetInt( p_dec, "ffmpeg-debug" );
/* Set CPU capabilities */ /* Set CPU capabilities */
p_context->dsp_mask = 0; p_context->dsp_mask = 0;
......
...@@ -108,6 +108,9 @@ void E_(ClosePostproc)( decoder_t *, void * ); ...@@ -108,6 +108,9 @@ void E_(ClosePostproc)( decoder_t *, void * );
"Higher levels require considerable more CPU power, but produce " \ "Higher levels require considerable more CPU power, but produce " \
"better looking pictures." ) "better looking pictures." )
#define DEBUG_TEST N_( "Debug mask" )
#define DEBUG_LONGTEST N_( "Set ffmpeg debug mask" )
#define LIBAVCODEC_PP_TEXT N_("ffmpeg postproc filter chains") #define LIBAVCODEC_PP_TEXT N_("ffmpeg postproc filter chains")
/* FIXME (cut/past from ffmpeg */ /* FIXME (cut/past from ffmpeg */
#define LIBAVCODEC_PP_LONGTEXT \ #define LIBAVCODEC_PP_LONGTEXT \
......
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