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 7f726120cd6750bc01a5c44572cdb2dbe3b0d087..502b2e39a90b1261085e5c693b0fb4470f2af64f 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);