Group :: Sistema/Bibliotecas
RPM: libvalhalla
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: libvalhalla-2.0.0-libavformat-deprecated.patch
Download
Download
# HG changeset patch
# User Mathieu Schroeter <mathieu@schroetersa.ch>
# Date 1295098623 -3600
# Node ID 883c6adb0024684ed4de4dcff2178d7a40125e4f
# Parent 9d73c3ac19b96bb4890b67e2b8e9672e931200fd
av_metadata_conv is deprecated with lastest lavf
diff -r 9d73c3ac19b9 -r 883c6adb0024 configure
--- a/configure Sat Jan 15 14:20:08 2011 +0100
+++ b/configure Sat Jan 15 14:37:03 2011 +0100
@@ -1057,7 +1057,7 @@
fi
echolog "Checking for libavformat ..."
-check_lib_pkgcfg libavformat libavformat/avformat.h av_metadata_conv -lavformat || die "Error, can't find libavformat !"
+check_lib_pkgcfg libavformat libavformat/avformat.h av_metadata_get -lavformat || die "Error, can't find libavformat !"
#################################################
diff -r 9d73c3ac19b9 -r 883c6adb0024 src/parser.c
--- a/src/parser.c Sat Jan 15 14:20:08 2011 +0100
+++ b/src/parser.c Sat Jan 15 14:37:03 2011 +0100
@@ -293,7 +293,9 @@
if (!ctx)
return NULL;
+#if LIBAVFORMAT_VERSION_MAJOR < 53
av_metadata_conv (ctx, NULL, ctx->iformat->metadata_conv);
+#endif /* LIBAVFORMAT_VERSION_MAJOR < 53 */
while ((tag = av_metadata_get (ctx->metadata,
"", tag, AV_METADATA_IGNORE_SUFFIX)))