[opensuse-kde3] k3b ffmpeg 0.11-1 patch
Ilya, Here is a patch for review for k3b. This patch updates k3b/plugins/decode/ffmpeg to be compatible with ffmpeg 0.11-1 and eliminates all deprecated warnings during compile of k3bffmpegwrapper.cpp. It needs review and testing. Since these deprecations have existed for quite some time, there may be no need for preprocessor checks as the replaced functions have been deprecated for a long time. The patch addresses all of the following: k3bffmpegwrapper.cpp: In member function 'bool K3bFFMpegFile::open()': k3bffmpegwrapper.cpp:82:84: error: 'av_open_input_file' was not declared in this scope k3bffmpegwrapper.cpp:89:3: warning: 'int av_find_stream_info(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1357) [-Wdeprecated-declarations] k3bffmpegwrapper.cpp:89:41: warning: 'int av_find_stream_info(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1357) [-Wdeprecated-declarations] k3bffmpegwrapper.cpp:117:7: warning: 'int avcodec_open(AVCodecContext*, AVCodec*)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3380) [-Wdeprecated-declarations] k3bffmpegwrapper.cpp:117:44: warning: 'int avcodec_open(AVCodecContext*, AVCodec*)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3380) [-Wdeprecated-declarations] k3bffmpegwrapper.cpp:131:63: error: 'dump_format' was not declared in this scope k3bffmpegwrapper.cpp: In member function 'void K3bFFMpegFile::close()': k3bffmpegwrapper.cpp:153:5: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1533) [-Wdeprecated-declarations] k3bffmpegwrapper.cpp:153:43: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1533) [-Wdeprecated-declarations] k3bffmpegwrapper.cpp: In member function 'int K3bFFMpegFile::fillOutputBuffer()': k3bffmpegwrapper.cpp:318:11: warning: 'int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3658) [-Wdeprecated-declarations] k3bffmpegwrapper.cpp:320:14: warning: 'int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3658) [-Wdeprecated-declarations] HTH -- David C. Rankin, J.D.,P.E.
participants (1)
-
David C. Rankin