slackbuilds_ponce/multimedia/transcode/transcode-1.1.7-ffmpeg24.patch
Heinz Wiesinger dbf4c04be6 multimedia/transcode: Fixed building with newer ffmpeg.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2015-06-20 11:55:20 +07:00

18 lines
544 B
Diff

https://bugs.gentoo.org/show_bug.cgi?id=520190
Index: transcode-1.1.7/import/probe_ffmpeg.c
===================================================================
--- transcode-1.1.7.orig/import/probe_ffmpeg.c
+++ transcode-1.1.7/import/probe_ffmpeg.c
@@ -120,7 +120,11 @@ void probe_ffmpeg(info_t *ipipe)
translate_info(lavf_dmx_context, ipipe->probe_info);
+#if LIBAVFORMAT_VERSION_INT > AV_VERSION_INT(53,25,0)
+ avformat_close_input(&lavf_dmx_context);
+#else
av_close_input_file(lavf_dmx_context);
+#endif
return;
}