app-misc/strigi: fix build with ffmpeg git master.
authorAlexis Ballier <aballier@gentoo.org>
Wed, 16 Sep 2015 09:22:24 +0000 (11:22 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 16 Sep 2015 09:22:52 +0000 (11:22 +0200)
Package-Manager: portage-2.2.20.1

app-misc/strigi/files/strigi-0.7.8-ffmpeg29.patch [new file with mode: 0644]
app-misc/strigi/strigi-0.7.8-r1.ebuild

diff --git a/app-misc/strigi/files/strigi-0.7.8-ffmpeg29.patch b/app-misc/strigi/files/strigi-0.7.8-ffmpeg29.patch
new file mode 100644 (file)
index 0000000..ec5a6de
--- /dev/null
@@ -0,0 +1,21 @@
+Index: strigi-0.7.8/libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp
+===================================================================
+--- strigi-0.7.8.orig/libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp
++++ strigi-0.7.8/libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp
+@@ -355,7 +355,7 @@ FFMPEGEndAnalyzer::analyze(AnalysisResul
+ #endif
+   if(fc->bit_rate)
+-    ar.addValue(factory->bitrateProperty, fc->bit_rate);
++    ar.addValue(factory->bitrateProperty, (int)fc->bit_rate);
+   else if (fc->duration!= no_bitrate && fc->duration > 0) {
+     cout<<"Trying to estimate bitrate\n";
+     int64_t size;
+@@ -486,7 +486,6 @@ FFMPEGEndAnalyzer::analyze(AnalysisResul
+           outs << stream.avg_frame_rate.num / stream.avg_frame_rate.den;
+           ar.addTriplet(streamuri, frameRatePropertyName, outs.str());
+         }
+-        if (codec.pix_fmt != PIX_FMT_NONE) {}//FIXME pixel format
+       }
+       
+     }
index 35bc48b5216b4e3e0a3d8e9f0f7f8a815122675e..4f7694f8bc001ff0d1baf9b65d7c97465a24c7e0 100644 (file)
@@ -51,6 +51,7 @@ DEPEND="${RDEPEND}
 PATCHES=(
        "${FILESDIR}/${P}-gcc-4.8.patch"
        "${FILESDIR}/${P}-libav10.patch"
+       "${FILESDIR}/${P}-ffmpeg29.patch"
 )
 
 if [[ ${PV} == 9999 ]] ; then