mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-09 14:07:31 +02:00
avcodec/videotoolbox: Fix undefined symbol with minimal configuration
Please reproduced with the following minimal configure command: ./configure --enable-shared --disable-all --enable-avcodec --enable-decoder=h264 --enable-hwaccel=h264_videotoolbox You'll get below error: Undefined symbols for architecture x86_64: "_ff_videotoolbox_vpcc_extradata_create", referenced from: _videotoolbox_start in videotoolbox.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Reported-by: Cameron Gutman <aicommander@gmail.com> Tested-by: Cameron Gutman <aicommander@gmail.com> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
8abc192236
commit
46f43f222e
@ -825,11 +825,13 @@ static CFDictionaryRef videotoolbox_decoder_config_create(CMVideoCodecType codec
|
|||||||
if (data)
|
if (data)
|
||||||
CFDictionarySetValue(avc_info, CFSTR("hvcC"), data);
|
CFDictionarySetValue(avc_info, CFSTR("hvcC"), data);
|
||||||
break;
|
break;
|
||||||
|
#if CONFIG_VP9_VIDEOTOOLBOX_HWACCEL
|
||||||
case kCMVideoCodecType_VP9 :
|
case kCMVideoCodecType_VP9 :
|
||||||
data = ff_videotoolbox_vpcc_extradata_create(avctx);
|
data = ff_videotoolbox_vpcc_extradata_create(avctx);
|
||||||
if (data)
|
if (data)
|
||||||
CFDictionarySetValue(avc_info, CFSTR("vpcC"), data);
|
CFDictionarySetValue(avc_info, CFSTR("vpcC"), data);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user