[FFmpeg-devel] [PATCH] avcodec/vda: define av_vda_default_init2 when CONFIG_H264_VDA_HWACCEL equ 0

Steven Liu lingjiujianke at gmail.com
Thu Oct 13 15:57:07 EEST 2016


ping

2016-10-12 17:36 GMT+08:00 Steven Liu <lq at chinaffmpeg.org>:

> 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 at chinaffmpeg.org>
> ---
>  libavcodec/vda.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/libavcodec/vda.c b/libavcodec/vda.c
> index 4670140..819ae03 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)
>  {
>  }
> --
> 1.7.1
>
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list