I'm having an issue where a lot of packages that references libavcodec fails to compile and a lot of packages that use libavutils segfault. This started happening after I replaced ffmpeg-1.2.2 with libav-9.8. I have since re-installed ffmpeg (v1.2.3) and tried deleting the libraries and doing a revdep-rebuild, rolling back a few versions, compiling libav/ffmpeg manually etc.

Under both libav and ffmpeg, compiles end in error with messages along the lines of

Code:

avcodec.c: In function 'ffmpeg_OpenCodec':
avcodec.c: error: 'CODEC_ID_x' undeclared (first use in this function)

where 'x' is a codec (eg "VORBIS", "AAC")

After many (successful) recompiles, mpv spits out the same segfault error every time

Code:

GNU gdb (Gentoo 7.5.1 p2) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/mpv...Reading symbols from /usr/lib64/debug/usr/bin/mpv.debug...done.
done.
(gdb) run
Starting program: /usr/bin/mpv Videos/Electric\ Shock.mp4
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Playing Videos/Electric Shock.mp4.