From 4d92bd3ca2252b461b352bc2af3ebeabe5394715 Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Wed, 12 Oct 2016 17:36:51 +0800 Subject: [PATCH] avcodec/vda: define av_vda_default_init2 when CONFIG_H264_VDA_HWACCEL equ 0 on OSX: ../configure --disable-everything --enable-demuxer=hls make error message: Undefined symbols for architecture x86_64: "_av_vda_default_init2", referenced from:_videotoolbox_init in ffmpeg_videotoolbox.o so add av_vda_default_init2 when CONFIG_H264_VDA_HWACCEL=0 Signed-off-by: Steven Liu Reviewed-by: wm4 Reviewed-by: Xidorn Quan Signed-off-by: Michael Niedermayer --- libavcodec/vda.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavcodec/vda.c b/libavcodec/vda.c index 4670140c76..819ae030b0 100644 --- a/libavcodec/vda.c +++ b/libavcodec/vda.c @@ -73,6 +73,11 @@ int av_vda_default_init(AVCodecContext *avctx) return AVERROR(ENOSYS); } +int av_vda_default_init2(AVCodecContext *avctx, AVVDAContext *vdactx) +{ + return AVERROR(ENOSYS); +} + void av_vda_default_free(AVCodecContext *ctx) { }