[vlc-commits] codec: vt_utils: use visible size for cvpx pictures

Thomas Guillem git at videolan.org
Fri Mar 9 15:36:06 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Mar  9 14:48:28 2018 +0100| [fcae7f07715a086e7b3174b495235f2f02bdf528] | committer: Thomas Guillem

codec: vt_utils: use visible size for cvpx pictures

Fixes #19950

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

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

diff --git a/modules/codec/vt_utils.c b/modules/codec/vt_utils.c
index 9964ceb434..1c62d7d3cf 100644
--- a/modules/codec/vt_utils.c
+++ b/modules/codec/vt_utils.c
@@ -272,8 +272,8 @@ cvpxpool_create(const video_format_t *fmt, unsigned count)
 
     cfdict_set_int32(cvpx_attrs_dict, kCVPixelBufferPixelFormatTypeKey,
                      cvpx_format);
-    cfdict_set_int32(cvpx_attrs_dict, kCVPixelBufferWidthKey, fmt->i_width);
-    cfdict_set_int32(cvpx_attrs_dict, kCVPixelBufferHeightKey, fmt->i_height);
+    cfdict_set_int32(cvpx_attrs_dict, kCVPixelBufferWidthKey, fmt->i_visible_width);
+    cfdict_set_int32(cvpx_attrs_dict, kCVPixelBufferHeightKey, fmt->i_visible_height);
     /* Required by CIFilter to render IOSurface */
     cfdict_set_int32(cvpx_attrs_dict, kCVPixelBufferBytesPerRowAlignmentKey, 16);
 



More information about the vlc-commits mailing list