Need a cast to handle old avformat
This commit is contained in:
parent
1282e36bb2
commit
1096461793
|
@ -79,7 +79,7 @@ VideoStore::VideoStore(const char *filename_in, const char *format_in,
|
||||||
|
|
||||||
fmt = oc->oformat;
|
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) {
|
if (!video_st) {
|
||||||
Fatal("Unable to create video out stream\n");
|
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) {
|
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) {
|
if (!audio_st) {
|
||||||
Error("Unable to create audio out stream\n");
|
Error("Unable to create audio out stream\n");
|
||||||
audio_st = NULL;
|
audio_st = NULL;
|
||||||
|
|
Loading…
Reference in New Issue