diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index 28940eeca..208f64818 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -222,7 +222,7 @@ VideoStore::VideoStore(const char *filename_in, const char *format_in, Debug(3, "Got AAC"); audio_out_stream = - avformat_new_stream(oc, reinterpret_cast(audio_in_ctx->codec)); + avformat_new_stream(oc, (const AVCodec *)(audio_in_ctx->codec)); if (!audio_out_stream) { Error("Unable to create audio out stream\n"); audio_out_stream = NULL;