Browse Source

codec: vt_utils: use visible size for cvpx pictures

Fixes #19950

(cherry picked from commit fcae7f0771)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
pull/135/head
Thomas Guillem 9 years ago
parent
commit
2274439426
  1. 4
      modules/codec/vt_utils.c

4
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);

Loading…
Cancel
Save