[FFmpeg-devel] [PATCH 2/2] lavc/videotoolbox: remove config_info maximum capacity

Clément Bœsch u at pkh.me
Fri Jun 17 16:10:43 CEST 2016


From: Clément Bœsch <clement at stupeflix.com>

In case of extradata, config_info will contain two entries instead of
one.
---
 libavcodec/videotoolbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c
index 7f72612..502b2e3 100644
--- a/libavcodec/videotoolbox.c
+++ b/libavcodec/videotoolbox.c
@@ -407,7 +407,7 @@ static CFDictionaryRef videotoolbox_decoder_config_create(CMVideoCodecType codec
                                                           AVCodecContext *avctx)
 {
     CFMutableDictionaryRef config_info = CFDictionaryCreateMutable(kCFAllocatorDefault,
-                                                                   1,
+                                                                   0,
                                                                    &kCFTypeDictionaryKeyCallBacks,
                                                                    &kCFTypeDictionaryValueCallBacks);
 
-- 
2.8.3



More information about the ffmpeg-devel mailing list