ffmpeg 0.8 on Ubuntu 12.04 deprecates some symbols
Created by: anjos
Our bindings to ffmpeg need a revamp. The VideoReader compilation reports:
/home/andre/work/bob/cxx/io/src/VideoReader.cc: In member function ‘void bob::io::VideoReader::open()’:
/home/andre/work/bob/cxx/io/src/VideoReader.cc:128:7: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:128:38: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:129:5: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:129:36: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:147:5: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:147:36: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:163:5: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:163:36: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:168:7: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4034) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:168:37: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4034) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:169:5: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:169:36: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:228:3: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:228:34: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc: In member function ‘void bob::io::VideoReader::const_iterator::init()’:
/home/andre/work/bob/cxx/io/src/VideoReader.cc:346:7: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:346:40: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:377:7: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4034) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:377:41: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4034) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc: In member function ‘void bob::io::VideoReader::const_iterator::reset()’:
/home/andre/work/bob/cxx/io/src/VideoReader.cc:463:5: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoReader.cc:463:38: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
Where as the VideoWriter.cc reports:
/home/andre/work/bob/cxx/io/src/VideoWriter.cc: In member function ‘AVStream* bob::io::VideoWriter::add_video_stream()’:
/home/andre/work/bob/cxx/io/src/VideoWriter.cc:229:8: warning: ‘AVStream* av_new_stream(AVFormatContext*, int)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoWriter.cc:229:38: warning: ‘AVStream* av_new_stream(AVFormatContext*, int)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoWriter.cc: In member function ‘void bob::io::VideoWriter::open_video()’:
/home/andre/work/bob/cxx/io/src/VideoWriter.cc:300:7: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4034) [-Wdeprecated-declarations]
/home/andre/work/bob/cxx/io/src/VideoWriter.cc:300:28: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4034) [-Wdeprecated-declarations]