building against ffmpeg 3.5 fails
A simple v4l2 full-featured video grabber
Brought to you by:
assisp
RPM Fusion for Fedora 28 and later will use ffmpeg 3.5. Building 2.0.5 fails though with these problems:
uvc_h264.c:1016:31: error: 'CODEC_FLAG2_FAST' undeclared (first use in this function); did you mean 'AV_CODEC_FLAG2_FAST'? h264_ctx->context->flags2 |= CODEC_FLAG2_FAST; ^~~~~~~~~~~~~~~~ AV_CODEC_FLAG2_FAST
uvc_h264.c:1045:23: warning: implicit declaration of function 'av_image_get_buffer_size'; did you mean 'av_samples_get_buffer_size'? [-Wimplicit-function-declaration] h264_ctx->pic_size = av_image_get_buffer_size(h264_ctx->context->pix_fmt, width, height, 1); ^~~~~~~~~~~~~~~~~~~~~~~~ av_samples_get_buffer_size
uvc_h264.c: In function 'h264_decode': uvc_h264.c:1095:3: warning: implicit declaration of function 'av_image_copy_to_buffer'; did you mean 'av_frame_get_buffer'? [-Wimplicit-function-declaration] av_image_copy_to_buffer(out_buf, h264_ctx->pic_size, ^~~~~~~~~~~~~~~~~~~~~~~ av_frame_get_buffer
jpeg_decoder.c:1457:23: warning: implicit declaration of function 'av_image_get_buffer_size'; did you mean 'av_samples_get_buffer_size'? [-Wimplicit-function-declaration] jpeg_ctx->pic_size = av_image_get_buffer_size(codec_data->context->pix_fmt, width, height, 1); ^~~~~~~~~~~~~~~~~~~~~~~~ av_samples_get_buffer_size
jpeg_decoder.c:1510:3: warning: implicit declaration of function 'av_image_copy_to_buffer'; did you mean 'av_frame_get_buffer'? [-Wimplicit-function-declaration] av_image_copy_to_buffer(jpeg_ctx->tmp_frame, jpeg_ctx->pic_size, ^~~~~~~~~~~~~~~~~~~~~~~ av_frame_get_buffer
video_codecs.c:136:19: error: 'ME_EPZS' undeclared here (not in a function) .me_method = ME_EPZS, ^~~~~~~ video_codecs.c:212:19: error: 'CODEC_FLAG_4MV' undeclared here (not in a function); did you mean 'AV_CODEC_FLAG_4MV'? .flags = CODEC_FLAG_4MV ^~~~~~~~~~~~~~ AV_CODEC_FLAG_4MV video_codecs.c:429:19: error: 'ME_HEX' undeclared here (not in a function); did you mean 'M_E'? .me_method = ME_HEX, ^~~~~~ M_E
Sorry. I meant: "... building current head (9248669) fails ... "