summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjin Jeong <yeongjin.jeong@navercorp.com>2019-04-29 11:52:31 +0900
committerTim-Philipp Müller <tim@centricular.com>2019-08-06 17:01:40 +0100
commit41b2b73c26cff8d0239c6d6a665065a5a4389fba (patch)
treeae848a95627a2e42d43fe46fbacd01829e94feac
parent82bf77144cd2b012dad3e93a046896e1432d55c4 (diff)
downloadgst-libav-41b2b73c26cff8d0239c6d6a665065a5a4389fba.tar.gz
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().
-rw-r--r--ext/libav/gstav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/libav/gstav.c b/ext/libav/gstav.c
index 2a88230..f3fb648 100644
--- a/ext/libav/gstav.c
+++ b/ext/libav/gstav.c
@@ -48,7 +48,7 @@ static GMutex gst_avcodec_mutex;
static inline gboolean
gst_ffmpeg_avcodec_is_ffmpeg (void)
{
- guint av_version = avutil_version ();
+ guint av_version = avcodec_version ();
GST_DEBUG ("Using libavcodec version %d.%d.%d",
av_version >> 16, (av_version & 0x00ff00) >> 8, av_version & 0xff);