[vlc-commits] codec/videotoolbox: Bridge to NSDictionary

Marvin Scholz git at videolan.org
Thu Feb 15 00:45:37 CET 2018


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Feb 15 00:34:29 2018 +0100| [10ee2376b55c5b8401809638c5e4010bc98a59be] | committer: Marvin Scholz

codec/videotoolbox: Bridge to NSDictionary

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

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

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index e1f843ffeb..e0fb9d0429 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1941,9 +1941,8 @@ skip:
 
 static int UpdateVideoFormat(decoder_t *p_dec, CVPixelBufferRef imageBuffer)
 {
-    CFDictionaryRef attachments = CVBufferGetAttachments(imageBuffer, kCVAttachmentMode_ShouldPropagate);
-    NSDictionary *attachmentDict = (NSDictionary *)attachments;
-
+    NSDictionary *attachmentDict =
+        (__bridge NSDictionary *)CVBufferGetAttachments(imageBuffer, kCVAttachmentMode_ShouldPropagate);
 
     if (attachmentDict != nil && attachmentDict.count > 0
      && p_dec->fmt_out.video.chroma_location == CHROMA_LOCATION_UNDEF)



More information about the vlc-commits mailing list