What steps will reproduce the problem?
1. install ffmpeg-0.11
2. try to compile ffmpegthumbnailer-2.0.7
What is the expected output? What do you see instead?
make all-recursive
make[1]: Entering directory `/home/andy/ffmpegthumbnailer-2.0.7'
Making all in man
make[2]: Entering directory `/home/andy/ffmpegthumbnailer-2.0.7/man'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/andy/ffmpegthumbnailer-2.0.7/man'
make[2]: Entering directory `/home/andy/ffmpegthumbnailer-2.0.7'
/bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-D__STDC_CONSTANT_MACROS -I/usr/include/libpng15 -g -O2 -MT
libffmpegthumbnailer_la-moviedecoder.lo -MD -MP -MF
.deps/libffmpegthumbnailer_la-moviedecoder.Tpo -c -o
libffmpegthumbnailer_la-moviedecoder.lo `test -f
'libffmpegthumbnailer/moviedecoder.cpp' || echo
'./'`libffmpegthumbnailer/moviedecoder.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -D__STDC_CONSTANT_MACROS
-I/usr/include/libpng15 -g -O2 -MT libffmpegthumbnailer_la-moviedecoder.lo -MD
-MP -MF .deps/libffmpegthumbnailer_la-moviedecoder.Tpo -c
libffmpegthumbnailer/moviedecoder.cpp -fPIC -DPIC -o
.libs/libffmpegthumbnailer_la-moviedecoder.o
libffmpegthumbnailer/moviedecoder.cpp: In member function 'void
ffmpegthumbnailer::MovieDecoder::initialize(const string&)':
libffmpegthumbnailer/moviedecoder.cpp:61:18: error: 'avcodec_init' was not
declared in this scope
libffmpegthumbnailer/moviedecoder.cpp:67:109: error: 'av_open_input_file' was
not declared in this scope
libffmpegthumbnailer/moviedecoder.cpp:73:9: warning: 'int
av_find_stream_info(AVFormatContext*)' is deprecated (declared at
/usr/include/libavformat/avformat.h:1357) [-Wdeprecated-declarations]
libffmpegthumbnailer/moviedecoder.cpp:73:45: warning: 'int
av_find_stream_info(AVFormatContext*)' is deprecated (declared at
/usr/include/libavformat/avformat.h:1357) [-Wdeprecated-declarations]
libffmpegthumbnailer/moviedecoder.cpp: In member function 'void
ffmpegthumbnailer::MovieDecoder::destroy()':
libffmpegthumbnailer/moviedecoder.cpp:93:9: warning: 'void
av_close_input_file(AVFormatContext*)' is deprecated (declared at
/usr/include/libavformat/avformat.h:1533) [-Wdeprecated-declarations]
libffmpegthumbnailer/moviedecoder.cpp:93:45: warning: 'void
av_close_input_file(AVFormatContext*)' is deprecated (declared at
/usr/include/libavformat/avformat.h:1533) [-Wdeprecated-declarations]
libffmpegthumbnailer/moviedecoder.cpp: In member function 'void
ffmpegthumbnailer::MovieDecoder::initializeVideo()':
libffmpegthumbnailer/moviedecoder.cpp:162:9: warning: 'int
avcodec_open(AVCodecContext*, AVCodec*)' is deprecated (declared at
/usr/include/libavcodec/avcodec.h:3380) [-Wdeprecated-declarations]
libffmpegthumbnailer/moviedecoder.cpp:162:57: warning: 'int
avcodec_open(AVCodecContext*, AVCodec*)' is deprecated (declared at
/usr/include/libavcodec/avcodec.h:3380) [-Wdeprecated-declarations]
make[2]: *** [libffmpegthumbnailer_la-moviedecoder.lo] Error 1
make[2]: Leaving directory `/home/andy/ffmpegthumbnailer-2.0.7'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/andy/ffmpegthumbnailer-2.0.7'
make: *** [all] Error 2
andy@eccles:~$
What version of the product are you using? On what operating system?
ffmpegthumbnailer-2.0.7 on linux x86_64
Please provide any additional information below.
The attached patch fixes the problem for me.
If you prefer seds, this also works:
sed -i 's#NULL, 0, NULL#NULL,
NULL#;s#\(_open_input\)_file#format\1#;/avcodec_init()/d'
libffmpegthumbnailer/moviedecoder.cpp
Original issue reported on code.google.com by b3n...@gmail.com on 14 Jun 2012 at 3:33
Original issue reported on code.google.com by
b3n...@gmail.com
on 14 Jun 2012 at 3:33Attachments: