Skip to content

Commit a0525e1

Browse files
committed
Fix build with ffmpeg5
1 parent f360b92 commit a0525e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/device/videothread.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ VideoThread::h264VideoStreamIndex()
167167
if(m_avStream->codecpar->codec_type != AVMEDIA_TYPE_VIDEO)
168168
continue;
169169

170-
AVCodec *dec = avcodec_find_decoder(m_avStream->codecpar->codec_id);
170+
const AVCodec *dec = avcodec_find_decoder(m_avStream->codecpar->codec_id);
171171
if(!dec) {
172172
qDebug() << "FRAMEBUFFER can't find decoder for stream" << i;
173173
continue;

0 commit comments

Comments
 (0)