diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index 4d10fb67b..eda382077 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -654,7 +654,7 @@ bool VideoStore::setup_resampler() { #else // codec is already open in ffmpeg_camera audio_in_ctx = audio_in_stream->codec; - audio_in_codec = reinterpret_cast(audio_in_ctx->codec); + audio_in_codec = reinterpret_cast(audio_in_ctx->codec); //audio_in_codec = avcodec_find_decoder(audio_in_stream->codec->codec_id); #endif diff --git a/src/zm_videostore.h b/src/zm_videostore.h index 4c6dbf871..01dbc4d78 100644 --- a/src/zm_videostore.h +++ b/src/zm_videostore.h @@ -38,7 +38,7 @@ private: AVFrame *out_frame; AVCodecContext *video_in_ctx; - AVCodec *audio_in_codec; + const AVCodec *audio_in_codec; AVCodecContext *audio_in_ctx; // The following are used when encoding the audio stream to AAC