From 109646179398150fe0285a2a1faabb376e85a377 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 28 Apr 2016 12:57:14 -0400 Subject: [PATCH] Need a cast to handle old avformat --- src/zm_videostore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;