diff --git a/gui/src/videodecoder.cpp b/gui/src/videodecoder.cpp index bd3f9653..49371424 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");