diff options
author | Andy Shaw <andy.shaw@qt.io> | 2020-03-18 11:38:24 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2020-03-20 14:59:56 +0100 |
commit | 42646fd2d1cfc03101cd1b14277b5462366fc2f7 (patch) | |
tree | fea24d6390562c92f72464a70a94ce94f5238a58 /src/plugins | |
parent | cd6a109f6068ea74270cb47736b3e2259e4ace84 (diff) |
DirectShow: Handle QVideoFormat::BGR24 in bytesPerLine()
Since we are mapping from MEDIASUBTYPE_RGB24 to QVideoFormat::BGR24 then
we should make sure this returns the correct value from bytesPerLine.
Change-Id: I8cc31d29a03bf2c1d7682de32448db0db9656cc7
Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/directshow/common/directshowmediatype.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/directshow/common/directshowmediatype.cpp b/src/plugins/directshow/common/directshowmediatype.cpp index 103f1ddc1..37106586a 100644 --- a/src/plugins/directshow/common/directshowmediatype.cpp +++ b/src/plugins/directshow/common/directshowmediatype.cpp @@ -294,6 +294,7 @@ int DirectShowMediaType::bytesPerLine(const QVideoSurfaceFormat &format) return format.frameWidth() * 4; // 24 bpp packed formats. case QVideoFrame::Format_RGB24: + case QVideoFrame::Format_BGR24: return PAD_TO_DWORD(format.frameWidth() * 3); // 16 bpp packed formats. case QVideoFrame::Format_RGB565: |