diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index 4fe59f4a5..422853c0f 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -81,7 +81,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"); }