trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: July 2012

[Patch] Updates k3b ffmpeg compliance with avformat.h

From: "David C. Rankin" <drankinatty@...>
Date: Wed, 25 Jul 2012 13:04:26 -0500
All,

  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]

  It has been included with bug: 1119

-- 
David C. Rankin, J.D.,P.E.

Attachments: