On Fri, Apr 22, 2011 at 10:28:44 (CEST), Jonathan Nieder wrote:

> Package: libavcodec-dev
> Version: 4:0.7~b1-1
> Hi,
> idjc fails to build for me:
> | gcc -DHAVE_CONFIG_H -I. -I..    -Wall -std=gnu99 -O2    -I/usr/include/FLAC 
>        -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -g -O2 -c -o 
> idjcmixer-avcodecdecode.o `test -f 'avcodecdecode.c' || echo 
> './'`avcodecdecode.c
> | avcodecdecode.c: In function ‘avcodecdecode_reg’:
> | avcodecdecode.c:235:33: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in 
> this function)
> | avcodecdecode.c:235:33: note: each undeclared identifier is reported only 
> once for each function it appears in
> | make[4]: *** [idjcmixer-avcodecdecode.o] Error 1
> | make[4]: Leaving directory `/tmp/idjc/c'
> Presumably this is due to a small planned API change, based on
> libavcodec/avcodec.h:
> | #define CodecType AVMediaType
> |
> [...]

> Please consider documenting this in the changelog or NEWS.Debian, with
> a few words of advice for callers (probably that they should use
> s/CODEC_/AVMEDIA_/ and the latter name has worked since version x.y.z
> for some x, y, and z, I suppose).

The new API was introduced on 2010-03-31 upstream and is already present
in the 0.6 release (the one currently in testing/wheezy), but not in 0.5
(stable/squeeze). See also this news entry:

,----[from http://libav.org/
| Apr 18 2011 
| In preparation for the upcoming 0.7 release, major
| versions of all the libraries in Libav (libavcodec, libavformat,
| libavdevice, libavutil, libavfilter, libswscale and libpostproc) were
| just bumped. This means that some deprecated code was disabled and
| will be removed shortly, thus breaking binary and API compatibility
| with 0.6.

But we are still in a stabilization phase, a small number of APIs have
been reintroduced after the beta1 release to give applications a bit
more time to migrate. If you find other APIs that were not present in
0.6, please contact me or via email or in #libav-devel so that we can
consider defering the removal for the 0.8 release.

Please note that upstream does not support an direct migration path from
0.5->0.6, i.e., only APIs that are missing in the last stable release
are considered critical. This particular issue therefore wouldn't
qualify, but there might be more.

Would installing the file doc/APIChanges [1] and refering to that in a
NEWS.Debian help you?

[1] http://git.debian.org/?p=pkg-multimedia/libav.git;a=blob;f=doc/APIchanges

> Thanks for keeping the ffmpeg libs working nicely.

Your welcome! :-)

Reinhard Tartler, KeyID 945348A4

pkg-multimedia-maintainers mailing list

Reply via email to