summaryrefslogtreecommitdiff
path: root/codec.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2011-12-19 23:34:47 +0100
committerJohns <johns98@gmx.net>2011-12-19 23:34:47 +0100
commit8a98257515aa8f8f695f6836c22c0c6a539b982e (patch)
tree83e48e3ff95404ab3e63737732779378e57ab4b6 /codec.c
parent36b285b5f7351836f0ad6a364c3d4743549a99c7 (diff)
downloadvdr-plugin-softhddevice-8a98257515aa8f8f695f6836c22c0c6a539b982e.tar.gz
vdr-plugin-softhddevice-8a98257515aa8f8f695f6836c22c0c6a539b982e.tar.bz2
libav 0.7.2 has no avcodec_open2.
Diffstat (limited to 'codec.c')
-rw-r--r--codec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/codec.c b/codec.c
index 656052a..f5d4629 100644
--- a/codec.c
+++ b/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"));
}