From 861c0dbaa3b1326dc5bba358316e4c0d7c1ad3c1 Mon Sep 17 00:00:00 2001 From: Gabi Alb Date: Wed, 15 Jan 2020 20:09:11 +0200 Subject: [PATCH] Fix H264 codec finding for libavcodec < 58.10.100 (#143) --- gui/src/videodecoder.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/src/videodecoder.cpp b/gui/src/videodecoder.cpp index bd3f965..4937142 100644 --- a/gui/src/videodecoder.cpp +++ b/gui/src/videodecoder.cpp @@ -23,6 +23,9 @@ VideoDecoder::VideoDecoder(ChiakiLog *log) : log(log) { + #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 10, 100) + avcodec_register_all(); + #endif codec = avcodec_find_decoder(AV_CODEC_ID_H264); if(!codec) throw VideoDecoderException("H264 Codec not available");