From 94321c0a8619719e6718ac3ddadb1edc4c5b53f3 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Wed, 28 Oct 2020 15:50:56 +1100 Subject: [PATCH] align frames to 32 bytes instead of 16 --- app/codec/frame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/codec/frame.cpp b/app/codec/frame.cpp index 16ebed087..8cd0a53bd 100644 --- a/app/codec/frame.cpp +++ b/app/codec/frame.cpp @@ -45,8 +45,8 @@ void Frame::set_video_params(const VideoParams ¶ms) { params_ = params; - // Align linesize to 16 - linesize_ = qCeil(static_cast(width()) / 16.0) * 16; + // Align linesize to 32 + linesize_ = qCeil(static_cast(width()) / 32.0) * 32; } int Frame::linesize_pixels() const