~ubuntu-branches/debian/stretch/acoustid-fingerprinter/stretch

« back to all changes in this revision

Viewing changes to debian/patches/02-CodecID.patch

  • Committer: Package Import Robot
  • Author(s): Jerome Charaoui
  • Date: 2014-08-26 20:30:49 UTC
  • mfrom: (7.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140826203049-qg3pn0syyg01udl3
Tags: 0.6-4
Make package FFmpeg-friendly (Closes: #758323)
Patch provided by Andreas Cadhalpun.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Replace removed macros
 
2
 Rename CodecID to AVCodecID and replace AVCODEC_MAX_AUDIO_FRAME_SIZE
 
3
 with its last value 192000.
 
4
 
 
5
Author: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
 
6
Last-Update: <2014-05-13>
 
7
 
 
8
--- acoustid-fingerprinter-0.6.orig/decoder.h
 
9
+++ acoustid-fingerprinter-0.6/decoder.h
 
10
@@ -116,7 +116,7 @@ inline Decoder::Decoder(const std::strin
 
11
 #endif
 
12
 {
 
13
 #ifdef HAVE_AV_AUDIO_CONVERT
 
14
-       m_buffer2 = (uint8_t *)av_malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE * 2 + 16);
 
15
+       m_buffer2 = (uint8_t *)av_malloc(192000 * 2 + 16);
 
16
 #endif
 
17
 
 
18
 #if NEW_AVFRAME_API
 
19
--- acoustid-fingerprinter-0.6.orig/ffmpeg/audioconvert.h
 
20
+++ acoustid-fingerprinter-0.6/ffmpeg/audioconvert.h
 
21
@@ -75,11 +75,11 @@ int avcodec_channel_layout_num_channels(
 
22
 /**
 
23
  * Guess the channel layout
 
24
  * @param nb_channels
 
25
- * @param codec_id Codec identifier, or CODEC_ID_NONE if unknown
 
26
+ * @param codec_id Codec identifier, or AV_CODEC_ID_NONE if unknown
 
27
  * @param fmt_name Format name, or NULL if unknown
 
28
  * @return Channel layout mask
 
29
  */
 
30
-uint64_t avcodec_guess_channel_layout(int nb_channels, enum CodecID codec_id, const char *fmt_name);
 
31
+uint64_t avcodec_guess_channel_layout(int nb_channels, enum AVCodecID codec_id, const char *fmt_name);
 
32
 
 
33
 struct AVAudioConvert;
 
34
 typedef struct AVAudioConvert AVAudioConvert;