Group :: Sound
RPM: chromaprint
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: chromaprint-1.1-alt-libav9.patch
Download
Download
--- chromaprint-1.0/src/ext/ffmpeg_decoder.h~ 2014-01-15 16:59:17.000000000 +0400
+++ chromaprint-1.0/src/ext/ffmpeg_decoder.h 2014-01-15 17:01:58.708000000 +0400
@@ -89,12 +89,12 @@ inline Decoder::~Decoder()
inline bool Decoder::Open()
{
- if (av_open_input_file(&m_format_ctx, m_file_name.c_str(), NULL, 0, NULL) != 0) {
+ if (avformat_open_input(&m_format_ctx, m_file_name.c_str(), NULL, NULL) != 0) {
m_error = "Couldn't open the file." + m_file_name;
return false;
}
- if (av_find_stream_info(m_format_ctx) < 0) {
+ if (avformat_find_stream_info(m_format_ctx, NULL) < 0) {
m_error = "Couldn't find stream information in the file.";
return false;
}
@@ -129,7 +129,7 @@ inline bool Decoder::Open()
return false;
}
- if (m_codec_ctx->sample_fmt != SAMPLE_FMT_S16) {
+ if (m_codec_ctx->sample_fmt != AV_SAMPLE_FMT_S16) {
m_error = "Unsupported sample format.\n";
return false;
}