Bug 171725

Summary: k3b ffmpeg support incompatible with new API version
Product: [Applications] k3b Reporter: wong wei <penisbirdo>
Component: generalAssignee: Sebastian Trueg <trueg>
Status: RESOLVED FIXED    
Severity: normal CC: loki_val
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Fix for new api

Description wong wei 2008-09-27 06:08:27 UTC
Version:           svn (using Devel)
Compiler:          GCC 4.3.1 
OS:                Linux
Installed from:    Compiled sources

Around 2008-09-08, the libavcodec API changed. The "avcodec_decode_audio()" function used by ffmpeg was deprecated for the "avcodec_decode_audio2()" function. Unfortunately, this can not be solved by a simple search and replace. The following link describes the new function in more detail:

http://www.dranger.com/ffmpeg/functions.html

Also, at some time, the "CODEC_ID_MP3LAME" declaration was either changed to "CODEC_ID_MP3" or removed. This also results in a compilation error against recent svn ffmpeg.
Comment 1 Peter Alfredsen 2008-10-15 13:04:22 UTC
Created attachment 27898 [details]
Fix for new api

This is what we use in Gentoo, together with a fix for the new ffmpeg includes paths. (Available on request).
Comment 2 Peter Alfredsen 2008-10-15 13:06:04 UTC
This is against 1.0.5, of course, but the general idea is the same in SVN, I assume.
Comment 3 Michał Małek 2009-09-17 20:08:39 UTC
Already fixed