mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
gstav: Use libavcodec util function for version check
The version of libavutil is printed in the log instead of libavcodec because avutil_version() returns LIBAVUTIL_VERSION_INT. This can be confusing, so we should be replace it with avcodec_version().
This commit is contained in:
parent
472f2ef104
commit
603c78b1a1
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ static GMutex gst_avcodec_mutex;
|
||||||
static inline gboolean
|
static inline gboolean
|
||||||
gst_ffmpeg_avcodec_is_ffmpeg (void)
|
gst_ffmpeg_avcodec_is_ffmpeg (void)
|
||||||
{
|
{
|
||||||
guint av_version = avutil_version ();
|
guint av_version = avcodec_version ();
|
||||||
|
|
||||||
GST_DEBUG ("Using libavcodec version %d.%d.%d",
|
GST_DEBUG ("Using libavcodec version %d.%d.%d",
|
||||||
av_version >> 16, (av_version & 0x00ff00) >> 8, av_version & 0xff);
|
av_version >> 16, (av_version & 0x00ff00) >> 8, av_version & 0xff);
|
||||||
|
|
Loading…
Reference in a new issue