Commit afcdb682 authored by François Cartegnie's avatar François Cartegnie 🤞

codec/demux: output version and provider in debug

parent 8ea27132
......@@ -264,6 +264,8 @@ static int OpenDecoder( vlc_object_t *p_this )
return VLC_EGENERIC;
}
msg_Dbg( p_this, "using %s %s", AVPROVIDER(LIBAVCODEC), LIBAVCODEC_IDENT );
/* Initialization must be done before avcodec_find_decoder() */
vlc_init_avcodec(p_this);
......
......@@ -25,6 +25,8 @@
#ifndef AVCOMMON_COMPAT_H
#define AVCOMMON_COMPAT_H 1
#define AVPROVIDER(lib) ((lib##_VERSION_MICRO < 100) ? "libav" : "ffmpeg")
#ifdef HAVE_LIBAVCODEC_AVCODEC_H
#include <libavcodec/avcodec.h>
......
......@@ -378,6 +378,8 @@ int OpenEncoder( vlc_object_t *p_this )
float f_val;
char *psz_val;
msg_Dbg( p_this, "using %s %s", AVPROVIDER(LIBAVCODEC), LIBAVCODEC_IDENT );
/* Initialization must be done before avcodec_find_encoder() */
vlc_init_avcodec(p_this);
......
......@@ -649,7 +649,7 @@ int OpenDemux( vlc_object_t *p_this )
if( p_sys->ic->start_time != (int64_t)AV_NOPTS_VALUE )
i_start_time = p_sys->ic->start_time * 1000000 / AV_TIME_BASE;
msg_Dbg( p_demux, "AVFormat supported stream" );
msg_Dbg( p_demux, "AVFormat(%s %s) supported stream", AVPROVIDER(LIBAVFORMAT), LIBAVFORMAT_IDENT );
msg_Dbg( p_demux, " - format = %s (%s)",
p_sys->fmt->name, p_sys->fmt->long_name );
msg_Dbg( p_demux, " - start time = %"PRId64, i_start_time );
......
......@@ -94,6 +94,8 @@ int OpenMux( vlc_object_t *p_this )
>= sizeof (((AVFormatContext *)NULL)->filename) )
return VLC_EGENERIC;
msg_Dbg( p_mux, "using %s %s", AVPROVIDER(LIBAVFORMAT), LIBAVFORMAT_IDENT );
vlc_init_avformat(p_this);
config_ChainParse( p_mux, "sout-avformat-", ppsz_mux_options, p_mux->p_cfg );
......
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