mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
~ Fix compilation with latest avcoded library
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
parent
7cd213abf9
commit
42b8c92c1c
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user