Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 472966 | Differences between
and this patch

Collapse All | Expand All

(-)chromaprint-1.0.orig/src/ext/ffmpeg_decoder.h (-1 / +5 lines)
Lines 28-33 Link Here
28
}
28
}
29
#include "audio_consumer.h"
29
#include "audio_consumer.h"
30
30
31
#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
32
#  define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000
33
#endif
34
31
class Decoder
35
class Decoder
32
{
36
{
33
public:
37
public:
Lines 124-130 Link Here
124
		return false;
128
		return false;
125
	}
129
	}
126
130
127
	if (avcodec_open(m_codec_ctx, codec) < 0) {
131
	if (avcodec_open2(m_codec_ctx, codec, NULL) < 0) {
128
		m_error = "Couldn't open the codec.";
132
		m_error = "Couldn't open the codec.";
129
		return false;
133
		return false;
130
	}
134
	}

Return to bug 472966