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.
Created attachment 203257 [details, diff] fix
I can confirm that this patch fixes compilation problem, thanks.
I confirm too, this patch fixed problem.
could someone put the patch in the tree ?
*** Bug 287118 has been marked as a duplicate of this bug. ***
I hope this is fixed for OpenCV 2.0.0 in bug 289258.
2.0.0 in portage.