Commit 4d92bd3c authored by Steven Liu's avatar Steven Liu Committed by Michael Niedermayer

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: 's avatarSteven Liu <lq@chinaffmpeg.org>
Reviewed-by: 's avatarwm4 <nfxjfg@googlemail.com>
Reviewed-by: 's avatarXidorn Quan <quanxunzhen@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 47f74df2
......@@ -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)
{
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment