obs-studio/plugins/win-dshow
Ryan Foster 3437e2b082 win-dshow: Fix possible crash if frame width or height is zero
If a frame has a width or height of zero, this value will make it into
libobs/media-io/video-frame.c:video_frame_init and cause linesizes or
heights to be zero, which will result in a bmalloc(0) call and OBS will
crash.

Instead of letting the call stack get that far, check the frame width
and height here at the source, log an error, and return early if the
frame width or height are zero.
2025-03-07 12:33:08 -05:00
..
cmake cmake: Specify NOMINMAX all the time on Windows 2025-02-07 14:52:24 -05:00
data Update translations from Crowdin 2024-12-06 23:21:55 +00:00
virtualcam-module clang-format: Increase column limit from 80 to 120 2024-10-04 18:19:27 -04:00
CMakeLists.txt cmake: Update supported CMake version range to 3.28 and 3.30 2024-09-13 14:42:32 -04:00
dshow-plugin.cpp UI,plugin: Refactor virtual camera enablement 2024-03-30 16:43:30 -07:00
encode-dstr.hpp clang-format: Increase column limit from 80 to 120 2024-10-04 18:19:27 -04:00
ffmpeg-decode.c clang-format: Increase column limit from 80 to 120 2024-10-04 18:19:27 -04:00
ffmpeg-decode.h clang-format: Increase column limit from 80 to 120 2024-10-04 18:19:27 -04:00
shared-memory-queue.c clang-format: Increase column limit from 80 to 120 2024-10-04 18:19:27 -04:00
shared-memory-queue.h clang-format: Increase column limit from 80 to 120 2024-10-04 18:19:27 -04:00
tiny-nv12-scale.c clang-format: Increase column limit from 80 to 120 2024-10-04 18:19:27 -04:00
tiny-nv12-scale.h clang-format: Increase column limit from 80 to 120 2024-10-04 18:19:27 -04:00
virtualcam.c clang-format: Increase column limit from 80 to 120 2024-10-04 18:19:27 -04:00
win-dshow-encoder.cpp clang-format: Increase column limit from 80 to 120 2024-10-04 18:19:27 -04:00
win-dshow.cpp win-dshow: Fix possible crash if frame width or height is zero 2025-03-07 12:33:08 -05:00