diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index 4175fce32..8357ba5f7 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -79,7 +79,7 @@ VideoStore::VideoStore(const char *filename_in, const char *format_in, fmt = oc->oformat; - video_st = avformat_new_stream(oc, input_st->codec->codec); + video_st = avformat_new_stream(oc, (AVCodec *)input_st->codec->codec); if (!video_st) { Fatal("Unable to create video out stream\n"); } @@ -97,7 +97,7 @@ VideoStore::VideoStore(const char *filename_in, const char *format_in, if (inpaud_st) { - audio_st = avformat_new_stream(oc, inpaud_st->codec->codec); + audio_st = avformat_new_stream(oc, (AVCodec *)inpaud_st->codec->codec); if (!audio_st) { Error("Unable to create audio out stream\n"); audio_st = NULL;