acoustidFingerprinter: use ffmpeg instead of ffmpeg_2

+7 -30
+6 -1
pkgs/tools/audio/acoustid-fingerprinter/default.nix
··· 17 17 18 18 patches = [ 19 19 (fetchpatch { 20 + name = "fix-build-with-libav-10.patch"; 21 + url = "https://bitbucket.org/acoustid/acoustid-fingerprinter/commits/2c778334a9fc2f0ccf9b1d7635c116bce6509748/raw"; 22 + sha256 = "1smyp3x5n6jwxpgw60xsijq2fn6g1gl759h1lm5agaxhcyyqn0i0"; 23 + }) 24 + (fetchpatch { 25 + name = "fix-build-failure-on-gcc-6.patch"; 20 26 url = "https://bitbucket.org/acoustid/acoustid-fingerprinter/commits/632e87969c3a5562a5d4842b03613267ba6236b2/raw"; 21 27 sha256 = "15hm9knrpqn3yqrwyjz4zh2aypwbcycd0c5svrsy1fb2h2rh05jk"; 22 28 }) 23 - ./ffmpeg.patch 24 29 ]; 25 30 26 31 meta = with lib; {
-26
pkgs/tools/audio/acoustid-fingerprinter/ffmpeg.patch
··· 1 - diff --git a/decoder.h b/decoder.h 2 - index 028f58f..4428ac1 100644 3 - --- a/decoder.h 4 - +++ b/decoder.h 5 - @@ -39,6 +39,8 @@ extern "C" { 6 - #define AV_SAMPLE_FMT_S16 SAMPLE_FMT_S16 7 - #endif 8 - 9 - +#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 10 - + 11 - class Decoder 12 - { 13 - public: 14 - diff --git a/ffmpeg/audioconvert.h b/ffmpeg/audioconvert.h 15 - index 2b28e2e..a699986 100644 16 - --- a/ffmpeg/audioconvert.h 17 - +++ b/ffmpeg/audioconvert.h 18 - @@ -79,7 +79,7 @@ int avcodec_channel_layout_num_channels(int64_t channel_layout); 19 - * @param fmt_name Format name, or NULL if unknown 20 - * @return Channel layout mask 21 - */ 22 - -uint64_t avcodec_guess_channel_layout(int nb_channels, enum CodecID codec_id, const char *fmt_name); 23 - +uint64_t avcodec_guess_channel_layout(int nb_channels, enum AVCodecID codec_id, const char *fmt_name); 24 - 25 - struct AVAudioConvert; 26 - typedef struct AVAudioConvert AVAudioConvert;
+1 -3
pkgs/top-level/all-packages.nix
··· 685 685 686 686 acousticbrainz-client = callPackage ../tools/audio/acousticbrainz-client { }; 687 687 688 - acoustidFingerprinter = callPackage ../tools/audio/acoustid-fingerprinter { 689 - ffmpeg = ffmpeg_2; 690 - }; 688 + acoustidFingerprinter = callPackage ../tools/audio/acoustid-fingerprinter { }; 691 689 692 690 alsaequal = callPackage ../tools/audio/alsaequal { }; 693 691