From: Rick Kern <ker...@gmail.com>

Use correct dictionary key/value to enable hardware encoding on OSX.

Signed-off-by: Rick Kern <ker...@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)

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to