Re: compile error: ‘avformat_close_input’ was not declared in this scope
Sam
sam at sentynel.com
Sat Jul 14 14:22:20 UTC 2012
On 14 July 2012 15:15, Mathias Panzenböck <grosser.meister.morti at gmx.net> wrote:
> Since (I think) yesterday I get these compile errors:
>
> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp: In
> member function ‘virtual void MusicDNSAudioDecoder::run()’:
> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:146:47:
> error: ‘avformat_close_input’ was not declared in this scope
> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:161:47:
> error: ‘avformat_close_input’ was not declared in this scope
> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:170:47:
> error: ‘avformat_close_input’ was not declared in this scope
> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:177:47:
> error: ‘avformat_close_input’ was not declared in this scope
> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:185:47:
> error: ‘avformat_close_input’ was not declared in this scope
> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:214:104:
> error: ‘avcodec_decode_audio4’ was not declared in this scope
> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:227:109:
> error: ‘AVFrame’ has no member named ‘nb_samples’
> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:227:145:
> error: ‘av_samples_get_buffer_size’ was not declared in this scope
> /home/panzi/software/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:259:43:
> error: ‘avformat_close_input’ was not declared in this scope
> make[2]: ***
> [src/CMakeFiles/amaroklib.dir/musicbrainz/MusicDNSAudioDecoder.o] Error 1
>
>
> avformat_close_input is from ffmpeg, right? I have ffmpeg-devel installed
> (version 0.8.12). cmake does not complain about anything.
>
> -panzi
This is likely the commit that's causing problems:
http://quickgit.kde.org/index.php?p=amarok.git&a=commit&h=5e609a6dccb523655205eabc29d26cda503796c2
Something it changed must have been introduced after version 0.7.
(Easy to do, ffmpeg's API changes are a nightmare.) Sergey, could you
look at this please?
More information about the Amarok-devel
mailing list