Bug#739336: FTBFS with libav10

Sebastian Ramacher sramacher at debian.org
Wed Feb 26 16:49:48 UTC 2014


Control: tags -1 + patch

On 2014-02-17 19:52:36, Moritz Muehlenhoff wrote:
> Source: libphash
> Severity: important
> 
> Hi,
> your package fails to build from source against libav 10 (currently
> packaged in experimental). This bug will become release-critical
> at some point when the libav10 transition starts.
> 
> Migration documentation can be found at
> https://wiki.libav.org/Migration/10
> 
> Cheers,
>         Moritz
> 
> cimgffmpeg.cpp: In function 'int NextFrames(VFInfo*, cimg_library::CImgList<unsigned char>*)':
> cimgffmpeg.cpp:257:9: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3110) [-Wdeprecated-declarations]
>   pFrame=avcodec_alloc_frame();
>          ^
> cimgffmpeg.cpp:257:29: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3110) [-Wdeprecated-declarations]
>   pFrame=avcodec_alloc_frame();
>                              ^
> cimgffmpeg.cpp:260:29: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3110) [-Wdeprecated-declarations]
>   AVFrame *pConvertedFrame = avcodec_alloc_frame();
>                              ^
> cimgffmpeg.cpp:260:49: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3110) [-Wdeprecated-declarations]
>   AVFrame *pConvertedFrame = avcodec_alloc_frame();
>                                                  ^
> cimgffmpeg.cpp: In function 'float fps(const char*)':
> cimgffmpeg.cpp:434:47: error: 'AVStream' has no member named 'r_frame_rate'
>   int num = (pFormatCtx->streams[videoStream]->r_frame_rate).num;
>                                                ^
> cimgffmpeg.cpp:435:47: error: 'AVStream' has no member named 'r_frame_rate'
>   int den = (pFormatCtx->streams[videoStream]->r_frame_rate).den;

The attached patch should fix this issue.

Regards
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libav10.patch
Type: text/x-diff
Size: 578 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/forensics-devel/attachments/20140226/234faff7/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/forensics-devel/attachments/20140226/234faff7/attachment.sig>


More information about the forensics-devel mailing list