[FFmpeg-devel] [PATCH v2 02/10] vtenc: Enable hardware encoding on OSX.
kernrj at gmail.com
kernrj at gmail.com
Wed Nov 18 19:49:50 CET 2015
From: Rick Kern <kernrj at gmail.com>
Use correct dictionary key/value to enable hardware encoding on OSX.
Signed-off-by: Rick Kern <kernrj at gmail.com>
---
libavcodec/vtenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/vtenc.c b/libavcodec/vtenc.c
index 06c5360..f497c38 100644
--- a/libavcodec/vtenc.c
+++ b/libavcodec/vtenc.c
@@ -500,6 +500,7 @@ static av_cold int vtenc_init(AVCodecContext* avctx){
);
CFDictionarySetValue(enc_info, kVTVideoEncoderSpecification_RequireHardwareAcceleratedVideoEncoder, kCFBooleanTrue);
+ CFDictionarySetValue(enc_info, kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder, kCFBooleanTrue);
status = VTCompressionSessionCreate(
kCFAllocatorDefault,
--
2.4.9 (Apple Git-60)
More information about the ffmpeg-devel
mailing list