diff options
| author | cashmere <cashmere@autistici.org> | 2026-07-25 13:54:52 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-07-25 13:54:52 +0200 |
| commit | 8132c06bf78e2ed39deb917fd9e96823e40b7b42 (patch) | |
| tree | 49c97e0daf25d9ef4654fc11cab262baf89c70a2 /multimedia/sunshine/files/patch-src_video.cpp | |
| parent | 11214b70b0d5e670d85c294e79f96cba63e34b13 (diff) | |
| download | ports-8132c06bf78e2ed39deb917fd9e96823e40b7b42.tar.gz | |
add sunshine, i3bar-river, mango and scenefx05 ports
Diffstat (limited to 'multimedia/sunshine/files/patch-src_video.cpp')
| -rw-r--r-- | multimedia/sunshine/files/patch-src_video.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/multimedia/sunshine/files/patch-src_video.cpp b/multimedia/sunshine/files/patch-src_video.cpp new file mode 100644 index 0000000..e79e664 --- /dev/null +++ b/multimedia/sunshine/files/patch-src_video.cpp @@ -0,0 +1,10 @@ +--- src/video.cpp.orig ++++ src/video.cpp +@@ -134,6 +134,7 @@ + // Setup the input frame using the caller's img_t + sws_input_frame->data[0] = img.data; + sws_input_frame->linesize[0] = img.row_pitch; ++ if (!img.data) { return 0; } + + // Perform color conversion and scaling to the final size + auto status = sws_scale_frame(sws.get(), requires_padding ? sws_output_frame.get() : sw_frame.get(), sws_input_frame.get()); |
