Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Apr 2016 16:45:28 +0000 (UTC)
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r413452 - head/deskutils/libstreamanalyzer/files
Message-ID:  <201604161645.u3GGjSYT047586@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rakuco
Date: Sat Apr 16 16:45:27 2016
New Revision: 413452
URL: https://svnweb.freebsd.org/changeset/ports/413452

Log:
  Add a patch from Debian to make the port build with FFMPEG 3.x.
  
  The patch is backwards compatible with FFMPEG 2, so add it now to prepare the
  ground for FFMPEG 3.
  
  PR:		208816
  Submitted by:	Ben Woods <woodsb02@gmail.com>
  Obtained from:	Debian

Added:
  head/deskutils/libstreamanalyzer/files/patch-ffmpeg30   (contents, props changed)

Added: head/deskutils/libstreamanalyzer/files/patch-ffmpeg30
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/libstreamanalyzer/files/patch-ffmpeg30	Sat Apr 16 16:45:27 2016	(r413452)
@@ -0,0 +1,38 @@
+Make the port build with FFMPEG 3.x.
+
+Obtained from: http://anonscm.debian.org/viewvc/pkg-kde/kde-extras/strigi/trunk/debian/patches/ffmpeg_2.9.patch?view=markup&pathrev=20374
+
+Description: Replace deprecated FFmpeg API
+Author: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
+Last-Update: <2015-11-02>
+--- libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp.orig
++++ 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, (uint32_t)fc->bit_rate);
+   else if (fc->duration!= no_bitrate && fc->duration > 0) {
+     cout<<"Trying to estimate bitrate\n";
+     int64_t size;
+@@ -412,8 +412,8 @@ FFMPEGEndAnalyzer::analyze(AnalysisResul
+         if (size_t len = strlen(p->name)) {
+           ar.addTriplet(streamuri, codecPropertyName, string(p->name, len));
+         }
+-      } else if (size_t len = strlen(codec.codec_name)) {
+-        ar.addTriplet(streamuri, codecPropertyName, string(codec.codec_name, len));
++      } else if (size_t len = strlen(avcodec_get_name(codec.codec_id))) {
++        ar.addTriplet(streamuri, codecPropertyName, string(avcodec_get_name(codec.codec_id), len));
+       }
+ /*
+ 00792     } else if (enc->codec_id == CODEC_ID_MPEG2TS) {
+@@ -486,7 +486,7 @@ 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
++        if (codec.pix_fmt != AV_PIX_FMT_NONE) {}//FIXME pixel format
+       }
+       
+     }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604161645.u3GGjSYT047586>