lavc/videotoolbox: remove config_info maximum capacity
authorClément Bœsch <clement@stupeflix.com>
Fri, 17 Jun 2016 13:55:58 +0000 (15:55 +0200)
committerClément Bœsch <clement@stupeflix.com>
Fri, 17 Jun 2016 15:46:19 +0000 (17:46 +0200)
In case of extradata, config_info will contain two entries instead of
one.

libavcodec/videotoolbox.c

index 7f72612..502b2e3 100644 (file)
@@ -407,7 +407,7 @@ static CFDictionaryRef videotoolbox_decoder_config_create(CMVideoCodecType codec
                                                           AVCodecContext *avctx)
 {
     CFMutableDictionaryRef config_info = CFDictionaryCreateMutable(kCFAllocatorDefault,
-                                                                   1,
+                                                                   0,
                                                                    &kCFTypeDictionaryKeyCallBacks,
                                                                    &kCFTypeDictionaryValueCallBacks);