1
Description: Replace removed macros
2
Rename CodecID to AVCodecID and replace AVCODEC_MAX_AUDIO_FRAME_SIZE
3
with its last value 192000.
5
Author: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
6
Last-Update: <2014-05-13>
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
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);
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(
23
* Guess the channel layout
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
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);
33
struct AVAudioConvert;
34
typedef struct AVAudioConvert AVAudioConvert;