Bug 171725 - k3b ffmpeg support incompatible with new API version
Summary: k3b ffmpeg support incompatible with new API version
Status: RESOLVED FIXED
Alias: None
Product: k3b
Classification: Applications
Component: general (other bugs)
Version First Reported In: Git
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Trueg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-27 06:08 UTC by wong wei
Modified: 2011-01-03 13:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Fix for new api (1.02 KB, patch)
2008-10-15 13:04 UTC, Peter Alfredsen
Details

Note You need to log in before you can comment on or make changes to this bug.
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