chromaprint
chromaprint copied to clipboard
Port to ffmpeg 5.0
Replace removed functionality like accessing the codec context from an AVStream and avcodec_decode_audio4()
Signed-off-by: Bernhard Rosenkränzer [email protected] Fixes: https://github.com/acoustid/chromaprint/issues/78
With this patch the build fails with ffmpeg 4.4:
In file included from /<<PKGBUILDDIR>>/src/cmd/fpcalc.cpp:7:
/<<PKGBUILDDIR>>/src/audio/ffmpeg_audio_reader.h:144:69: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
144 | ret = avformat_open_input(&m_format_ctx, file_name.c_str(), m_input_fmt, &m_input_opts);
| ^~~~~~~~~~~
| |
| const AVInputFormat*
thanks mate successful build with ffmpeg5
Replace removed functionality like accessing the codec context from an AVStream and avcodec_decode_audio4()
Signed-off-by: Bernhard Rosenkränzer [email protected] Fixes: #78
It builds fine, but it throws errors at runtime because it doesn't account for AVERROR_EOF
as far as I can tell this is going to need a lot more to work correctly
Thank you for the patch, but I'll end up using my version here - https://github.com/acoustid/chromaprint/pull/120