mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
libav 0.7.2 has no avcodec_open2.
This commit is contained in:
parent
36b285b5f7
commit
8a98257515
4
codec.c
4
codec.c
@ -267,7 +267,7 @@ void CodecVideoOpen(VideoDecoder * decoder, const char *name, int codec_id)
|
||||
Fatal(_("codec: can't allocate video codec context\n"));
|
||||
}
|
||||
// open codec
|
||||
#if LIBAVCODEC_VERSION_INT <= AV_VERSION_INT(52,122,0)
|
||||
#if LIBAVCODEC_VERSION_INT <= AV_VERSION_INT(53,5,0)
|
||||
if (avcodec_open(decoder->VideoCtx, video_codec) < 0) {
|
||||
Fatal(_("codec: can't open video codec!\n"));
|
||||
}
|
||||
@ -523,7 +523,7 @@ void CodecAudioOpen(AudioDecoder * audio_decoder, const char *name,
|
||||
Fatal(_("codec: can't allocate audio codec context\n"));
|
||||
}
|
||||
// open codec
|
||||
#if LIBAVCODEC_VERSION_INT <= AV_VERSION_INT(52,122,0)
|
||||
#if LIBAVCODEC_VERSION_INT <= AV_VERSION_INT(53,5,0)
|
||||
if (avcodec_open(audio_decoder->AudioCtx, audio_codec) < 0) {
|
||||
Fatal(_("codec: can't open audio codec\n"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user