Need a cast to handle old avformat

This commit is contained in:
Isaac Connor 2016-04-28 12:57:14 -04:00
parent 1282e36bb2
commit 1096461793
1 changed files with 2 additions and 2 deletions

View File

@ -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;