Skip to content

Commit 01cac76

Browse files
committed
Set AVCodec types as constant in cdriso.cc
1 parent 63cbe06 commit 01cac76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/cdriso.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ static int open_codec_context(int *stream_idx, AVFormatContext *fmt_ctx, enum AV
363363
stream_index = ret;
364364
st = fmt_ctx->streams[stream_index];
365365

366-
AVCodec *dec = avcodec_find_decoder(st->codecpar->codec_id);
366+
const AVCodec *dec = avcodec_find_decoder(st->codecpar->codec_id);
367367
if (!dec) {
368368
PCSX::g_system->printf(_("Failed to find %s codec\n"), av_get_media_type_string(type));
369369
return AVERROR(EINVAL);
@@ -391,7 +391,7 @@ static int open_codec_context(int *stream_idx, AVFormatContext *fmt_ctx, enum AV
391391
static int decode_compressed_cdda_track(char *buf, char *src_filename, int *size) {
392392
AVFormatContext *fmt_ctx = NULL;
393393
AVCodecContext *audio_dec_ctx = NULL;
394-
AVCodec *audio_codec = NULL;
394+
const AVCodec *audio_codec = NULL;
395395
AVStream *audio_stream = NULL;
396396
int audio_stream_idx = -1;
397397
AVFrame *frame = NULL;

0 commit comments

Comments
 (0)