[vlc-commits] videotoolbox: remove wrong dict capacity hint

Thomas Guillem git at videolan.org
Fri Jan 12 14:20:04 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 12 13:30:19 2018 +0100| [f42992b6dbf4e573472a21d31628c0664e659e19] | committer: Thomas Guillem

videotoolbox: remove wrong dict capacity hint

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f42992b6dbf4e573472a21d31628c0664e659e19
---

 modules/codec/videotoolbox.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index ea84330317..370cb787ce 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -996,7 +996,7 @@ static CFMutableDictionaryRef CreateSessionDescriptionFormat(decoder_t *p_dec,
 {
     decoder_sys_t *p_sys = p_dec->p_sys;
 
-    CFMutableDictionaryRef decoderConfiguration = cfdict_create(2);
+    CFMutableDictionaryRef decoderConfiguration = cfdict_create(0);
     if (decoderConfiguration == NULL)
         return nil;
 
@@ -1124,7 +1124,7 @@ static int StartVideoToolbox(decoder_t *p_dec)
         return VLC_EGENERIC;
 
     /* destination pixel buffer attributes */
-    CFMutableDictionaryRef destinationPixelBufferAttributes = cfdict_create(2);
+    CFMutableDictionaryRef destinationPixelBufferAttributes = cfdict_create(0);
     if(destinationPixelBufferAttributes == nil)
         return VLC_EGENERIC;
 



More information about the vlc-commits mailing list