summaryrefslogtreecommitdiff
path: root/src/cam/sdl_texture_yuyv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cam/sdl_texture_yuyv.cpp')
-rw-r--r--src/cam/sdl_texture_yuyv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cam/sdl_texture_yuyv.cpp b/src/cam/sdl_texture_yuyv.cpp
index 637c0900..cb51fb0e 100644
--- a/src/cam/sdl_texture_yuyv.cpp
+++ b/src/cam/sdl_texture_yuyv.cpp
@@ -9,8 +9,8 @@
using namespace libcamera;
-SDLTextureYUYV::SDLTextureYUYV(const SDL_Rect &rect)
- : SDLTexture(rect, SDL_PIXELFORMAT_YUY2, 4 * ((rect.w + 1) / 2))
+SDLTextureYUYV::SDLTextureYUYV(const SDL_Rect &rect, unsigned int stride)
+ : SDLTexture(rect, SDL_PIXELFORMAT_YUY2, stride)
{
}