[vlc-commits] [Git][videolan/vlc][master] codec: vpx: use pitch as image stride alignment

Tristan Matthews (@tmatth) gitlab at videolan.org
Tue Jan 31 15:59:32 UTC 2023



Tristan Matthews pushed to branch master at VideoLAN / VLC


Commits:
295ddcab by Tristan Matthews at 2023-01-31T15:27:50+00:00
codec: vpx: use pitch as image stride alignment

This didn't seem to be causing issues like #27718 did for aom but it seems
safer than hardcoding a value.

Refs !3110

- - - - -


1 changed file:

- modules/codec/vpx.c


Changes:

=====================================
modules/codec/vpx.c
=====================================
@@ -499,7 +499,7 @@ static block_t *Encode(encoder_t *p_enc, picture_t *p_pict)
     unsigned i_h = p_enc->fmt_in.video.i_visible_height;
 
     /* Create and initialize the vpx_image */
-    if (!vpx_img_wrap(&img, VPX_IMG_FMT_I420, i_w, i_h, 32, p_pict->p[0].p_pixels)) {
+    if (!vpx_img_wrap(&img, VPX_IMG_FMT_I420, i_w, i_h, p_pict->p[0].i_pitch, p_pict->p[0].p_pixels)) {
         VPX_ERR(p_enc, ctx, "Failed to wrap image");
         picture_Release(p_pict);
         return NULL;



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

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


VideoLAN code repository instance


More information about the vlc-commits mailing list