From e723b6dbef022225bb553ee4201d6fa0bfe88165 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 21 Feb 2017 16:28:53 -0500 Subject: [PATCH] Must cast codec --- src/zm_videostore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }