Skip to content

Commit f10a5a8

Browse files
DygearLihis
andauthored
Fix Error: assigning to 'AVCodec *' from 'const AVCodec *' discards qualifiers in newer ffmpeg versions (#746)
Co-authored-by: Tomi Lähteenmäki <[email protected]>
1 parent 0f83c16 commit f10a5a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rwengine/src/audio/SoundSource.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class SoundSource {
9090
AVFrame* frame = nullptr;
9191
AVFormatContext* formatContext = nullptr;
9292
AVStream* audioStream = nullptr;
93-
AVCodec* codec = nullptr;
93+
const AVCodec* codec = nullptr;
9494
SwrContext* swr = nullptr;
9595
AVCodecContext* codecContext = nullptr;
9696
AVPacket readingPacket;

0 commit comments

Comments
 (0)