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

Thomas Guillem git at videolan.org
Fri Jan 12 16:23:15 CET 2018


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

videotoolbox: remove wrong dict capacity hint

(cherry picked from commit f42992b6dbf4e573472a21d31628c0664e659e19)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 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