This ffmpeg version has a big api change. I'll attach the patch; note that I have *not* upstreamed it as I don't know how you handle your relations with upstream. If you want me to do it, please let me know. This bug will serve me to track the unmasking of ffmpeg from another bug, so please don't close it until it's really ok. I've tried to use k3b trunk but it needs kde4; anyway the changes here should be minimal: dont use CODEC_ID_MP3LAME but CODEC_ID_MP3 instead (MP3LAME has no sense as a codec) and dont use avcodec_decode_audio but avcodec_decode_audio2 and set its third argument to AVCODEC_MAX_AUDIO_FRAME_SIZE and you'll get the exact same thing as avcodec_decode_audio.
Created attachment 168422 [details, diff] fix
+ 15 Oct 2008; Peter Alfredsen <loki_val@gentoo.org> + +files/k3b-1.0.5-ffmpeg-0.4.9_p20081014-API.patch, k3b-1.0.5-r3.ebuild: + Fix for new ffmpeg API, bug 242000, thanks to Alexis Ballier. + Upstream bug: https://bugs.kde.org/show_bug.cgi?id=171725