소스 검색

~ Fix compilation with latest avcoded library

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
Alexis Maiquez 4 년 전
부모
커밋
42b8c92c1c
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/WallpaperEngine/Render/CVideo.cpp

+ 1 - 1
src/WallpaperEngine/Render/CVideo.cpp

@@ -36,7 +36,7 @@ CVideo::CVideo (Core::CVideo* video, CContainer* container, CContext* context) :
     if (m_videoStream == -1)
         throw std::runtime_error ("Failed to find video stream");
 
-    AVCodec* codec = avcodec_find_decoder (m_formatCtx->streams [m_videoStream]->codecpar->codec_id);
+    const AVCodec* codec = avcodec_find_decoder (m_formatCtx->streams [m_videoStream]->codecpar->codec_id);
     if (codec == nullptr)
         throw std::runtime_error ("Failed to find codec");