avcodec/vda: define av_vda_default_init2 when CONFIG_H264_VDA_HWACCEL equ 0
authorSteven Liu <lq@chinaffmpeg.org>
Wed, 12 Oct 2016 09:36:51 +0000 (17:36 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 21 Oct 2016 14:54:25 +0000 (16:54 +0200)
commit4d92bd3ca2252b461b352bc2af3ebeabe5394715
tree10999650180bcd07034b24826d4a2a08a9d22f37
parent47f74df29cb1ad2cef468f6acc7c572241937b04
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 <lq@chinaffmpeg.org>
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Reviewed-by: Xidorn Quan <quanxunzhen@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vda.c