Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
d8247250 by Steve Lhomme at 2024-03-27T09:26:55+00:00
VLCSampleBufferDisplay: use the picture format of SPU when dealing with buffer 
mapping

Missing parts from 4f37f30c69085ec45404b594b765ab18025561a4.

- - - - -


1 changed file:

- modules/video_output/apple/VLCSampleBufferDisplay.m


Changes:

=====================================
modules/video_output/apple/VLCSampleBufferDisplay.m
=====================================
@@ -441,7 +441,7 @@ static void UpdateSubpictureRegions(vout_display_t *vd,
             length - pixels_offset);
         CGDataProviderRef provider = CGDataProviderCreateWithCFData(data);
         CGImageRef image = CGImageCreate(
-            r->place.width, r->place.height,
+            r->p_picture->format.i_visible_width, 
r->p_picture->format.i_visible_height,
             8, 32, r->p_picture->p->i_pitch,
             space, kCGImageAlphaFirst,
             provider, NULL, true, kCGRenderingIntentDefault



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/d824725009efe65c1861ec79f88af3d1a7125ce6

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/d824725009efe65c1861ec79f88af3d1a7125ce6
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to