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-05-02 08:42:38 +0100
commitd0a73145064e81dc0fe7d929a5d233a532be1e56 (patch)
tree6d27ae67d62c322f69509e2b402b1269d041f746
parent524e9e40f3b9f06cdd02f3e18069e88bd7cc63b1 (diff)
downloadgst-libav-d0a73145064e81dc0fe7d929a5d233a532be1e56.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 0fba840..b590aea 100644
--- a/ext/libav/gstav.c
+++ b/ext/libav/gstav.c
@@ -51,7 +51,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);