Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283832 - media-libs/opencv fails to build with ffmpeg trunk
Summary: media-libs/opencv fails to build with ffmpeg trunk
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
URL:
Whiteboard:
Keywords:
: 287118 (view as bug list)
Depends on: 289258
Blocks:
  Show dependency tree
 
Reported: 2009-09-06 11:13 UTC by Alexis Ballier
Modified: 2010-02-26 12:47 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix (ffmpeg.patch,641 bytes, patch)
2009-09-06 11:14 UTC, Alexis Ballier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.