mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 05:38:39 +00:00
Bug 2029291.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "libyuv/convert_argb.h"
|
||||
#include "libyuv/scale.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -959,7 +960,7 @@ static void YUVToARGBCopy(const uint8_t* src_y, int src_stride_y,
|
||||
mozilla::ColorRange color_range)
|
||||
{
|
||||
YUVBuferIter iter;
|
||||
iter.src_width = src_width;
|
||||
iter.src_width = std::min(src_width, dst_width);
|
||||
iter.src_height = src_height;
|
||||
iter.src_stride_y = src_stride_y;
|
||||
iter.src_stride_u = src_stride_u;
|
||||
|
||||
Reference in New Issue
Block a user