Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 283832

Summary: media-libs/opencv fails to build with ffmpeg trunk
Product: Gentoo Linux Reporter: Alexis Ballier <aballier>
Component: Current packagesAssignee: Thomas Anderson (tanderson) (RETIRED) <tanderson>
Status: RESOLVED FIXED    
Severity: normal CC: deduktionstheorem, doochik, erwan, m.debruijne, marco, marsoft, matej, mg, sirkonst, zeekec
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 289258    
Bug Blocks:    
Attachments: fix

Description Alexis Ballier gentoo-dev 2009-09-06 11:13:55 UTC
cvcap_ffmpeg.cpp:202: warning: 'int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3257)
cvcap_ffmpeg.cpp: In function 'AVFrame* icv_alloc_picture_FFMPEG(int, int, int, bool)':
cvcap_ffmpeg.cpp:402: error: invalid conversion from 'int' to 'PixelFormat'
cvcap_ffmpeg.cpp:402: error:   initializing argument 1 of 'int avpicture_get_size(PixelFormat, int, int)'
cvcap_ffmpeg.cpp:411: error: invalid conversion from 'int' to 'PixelFormat'
cvcap_ffmpeg.cpp:411: error:   initializing argument 3 of 'int avpicture_fill(AVPicture*, uint8_t*, PixelFormat, int, int)'


Patch following.
Comment 1 Alexis Ballier gentoo-dev 2009-09-06 11:14:16 UTC
Created attachment 203257 [details, diff]
fix
Comment 2 Marcin Gryszkalis 2009-09-11 02:36:04 UTC
I can confirm that this patch fixes compilation problem, thanks.
Comment 3 Enchant 2009-09-21 07:56:52 UTC
I confirm too, this patch fixed problem.
Comment 4 Raphaƫl Vinot 2009-09-30 12:08:12 UTC
could someone put the patch in the tree ? 
Comment 5 Sebastian Luther (few) 2009-10-01 20:33:40 UTC
*** Bug 287118 has been marked as a duplicate of this bug. ***
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2009-10-16 00:01:39 UTC
I hope this is fixed for OpenCV 2.0.0 in bug 289258.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2009-10-16 15:02:53 UTC
2.0.0 in portage.