Index: src/plugins/ffmpegdecoder/FfmpegDecoder.cpp
--- src/plugins/ffmpegdecoder/FfmpegDecoder.cpp.orig
+++ src/plugins/ffmpegdecoder/FfmpegDecoder.cpp
@@ -267,7 +267,11 @@ void FfmpegDecoder::Reset() {
         // avcodec_flush_buffers(this->codecContext);
         auto stream = this->formatContext->streams[this->streamId];
         if (stream != nullptr) {
+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(61, 3, 100)
             avcodec_close(this->codecContext);
+#else
+            avcodec_free_context(&this->codecContext);
+#endif
         }
 
         this->codecContext = nullptr;
