Johannes Weißl
2011-08-29 19:21:56 UTC
It seems ffmpeg development is completely mad, although their APIchanges
file says avcodec_open2() is there from version 53.6.0 (and this is true
for the git checkout), they somehow managed to not include it in their
official 0.8.2 release, which has version 53.7.0 (!).
---
ffmpeg.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index d56639a..e884274 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -194,7 +194,7 @@ static int ffmpeg_open(struct input_plugin_data *ip_data)
}
do {
-#if (LIBAVFORMAT_VERSION_INT < ((53<<16)+(3<<8)+0))
+#if (LIBAVFORMAT_VERSION_INT < ((53<<16)+(5<<8)+0))
err = av_find_stream_info(ic);
#else
err = avformat_find_stream_info(ic, NULL);
@@ -229,7 +229,7 @@ static int ffmpeg_open(struct input_plugin_data *ip_data)
if (codec->capabilities & CODEC_CAP_TRUNCATED)
cc->flags |= CODEC_FLAG_TRUNCATED;
-#if (LIBAVCODEC_VERSION_INT < ((53<<16)+(6<<8)+0))
+#if (LIBAVCODEC_VERSION_INT < ((53<<16)+(8<<8)+0))
if (avcodec_open(cc, codec) < 0) {
#else
if (avcodec_open2(cc, codec, NULL) < 0) {
file says avcodec_open2() is there from version 53.6.0 (and this is true
for the git checkout), they somehow managed to not include it in their
official 0.8.2 release, which has version 53.7.0 (!).
---
ffmpeg.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index d56639a..e884274 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -194,7 +194,7 @@ static int ffmpeg_open(struct input_plugin_data *ip_data)
}
do {
-#if (LIBAVFORMAT_VERSION_INT < ((53<<16)+(3<<8)+0))
+#if (LIBAVFORMAT_VERSION_INT < ((53<<16)+(5<<8)+0))
err = av_find_stream_info(ic);
#else
err = avformat_find_stream_info(ic, NULL);
@@ -229,7 +229,7 @@ static int ffmpeg_open(struct input_plugin_data *ip_data)
if (codec->capabilities & CODEC_CAP_TRUNCATED)
cc->flags |= CODEC_FLAG_TRUNCATED;
-#if (LIBAVCODEC_VERSION_INT < ((53<<16)+(6<<8)+0))
+#if (LIBAVCODEC_VERSION_INT < ((53<<16)+(8<<8)+0))
if (avcodec_open(cc, codec) < 0) {
#else
if (avcodec_open2(cc, codec, NULL) < 0) {
--
1.7.6
1.7.6