Bug#638243: Needs to be adapted to libav/0.7.1

Evan Klinger eklinger at gmail.com
Wed Aug 17 23:28:14 UTC 2011


FFmpeg has deprecated the CODEC_TYPE_VIDEO constant. It should be
renamed to AVMEDIA_TYPE_VIDEO.
This will be corrected in a future version of pHash.

Thank you
Evan

On Wed, Aug 17, 2011 at 1:52 PM, Moritz Muehlenhoff <jmm at debian.org> wrote:
> Package: libphash
> Severity: important
>
> Hi,
> the transition from ffmpeg/0.6.2 to libav/0.7 is planned soonish.
> (libav is a ffmpeg fork, to which Debian will switch, see
> http://en.wikipedia.org/wiki/FFmpeg for more information)
>
> Your package currently fails to build from source when built against
> libav/0.7.2 and needs to be adapted. You can test this yourself by
> building against the packages from experimental:
>
> cimgffmpeg.cpp:57:82: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/include/./libavformat/avformat.h:1050) [-Wdeprecated-declarations]
> cimgffmpeg.cpp:70:58: error: 'CODEC_TYPE_VIDEO' was not declared in this scope
> cimgffmpeg.cpp:134:96: error: 'avcodec_decode_video' was not declared in this scope
> cimgffmpeg.cpp: In function 'int NextFrames(VFInfo*, cimg_library::CImgList<unsigned char>*)':
> cimgffmpeg.cpp:202:7: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/include/./libavformat/avformat.h:1050) [-Wdeprecated-declarations]
> cimgffmpeg.cpp:202:78: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/include/./libavformat/avformat.h:1050) [-Wdeprecated-declarations]
> cimgffmpeg.cpp:216:59: error: 'CODEC_TYPE_VIDEO' was not declared in this scope
> cimgffmpeg.cpp:283:51: error: 'avcodec_decode_video' was not declared in this scope
> cimgffmpeg.cpp: In function 'int GetNumberStreams(const char*)':
> cimgffmpeg.cpp:339:6: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/include/./libavformat/avformat.h:1050) [-Wdeprecated-declarations]
> cimgffmpeg.cpp:339:57: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/include/./libavformat/avformat.h:1050) [-Wdeprecated-declarations]
> cimgffmpeg.cpp: In function 'long int GetNumberVideoFrames(const char*)':
> cimgffmpeg.cpp:357:6: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/include/./libavformat/avformat.h:1050) [-Wdeprecated-declarations]
> cimgffmpeg.cpp:357:57: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/include/./libavformat/avformat.h:1050) [-Wdeprecated-declarations]
> cimgffmpeg.cpp:368:53: error: 'CODEC_TYPE_VIDEO' was not declared in this scope
> cimgffmpeg.cpp: In function 'float fps(const char*)':
> cimgffmpeg.cpp:399:6: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/include/./libavformat/avformat.h:1050) [-Wdeprecated-declarations]
> cimgffmpeg.cpp:399:61: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/include/./libavformat/avformat.h:1050) [-Wdeprecated-declarations]
> cimgffmpeg.cpp:410:54: error: 'CODEC_TYPE_VIDEO' was not declared in this scope
> make[3]: *** [cimgffmpeg.lo] Fehler 1
> make[3]: Leaving directory `/home/jmm/deb/libav/libphash-0.9.4/src'
> make[2]: *** [all-recursive] Fehler 1
> make[2]: Leaving directory `/home/jmm/deb/libav/libphash-0.9.4'
> make[1]: *** [all] Fehler 2
> make[1]: Leaving directory `/home/jmm/deb/libav/libphash-0.9.4'
> dh_auto_build: make -j1 returned exit code 2
> make: *** [build] Fehler 2
> dpkg-buildpackage: Fehler: Fehler-Exitstatus von debian/rules build war 2
>
> Cheers,
>        Moritz
>
> -- System Information:
> Debian Release: wheezy/sid
>  APT prefers unstable
>  APT policy: (500, 'unstable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
> Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
>
>
>





More information about the forensics-devel mailing list