SHA256
8
0
forked from pool/v4l-utils
Files
v4l-utils/v4l-utils-32bitfix.patch

25 lines
1.0 KiB
Diff
Raw Permalink Normal View History

Accepting request 1280955 from home:alarrosa:branches:devel:libraries:c_c++ - Update to 1.30.1 * licenses: update copyright files to remove fsf address * v4l2-compliance: run testBlockingWait when streaming - Update to 1.30.0 * media-ctl: libv4l2subdev: Add Y16 format * v4l2-ctl: process events before queues in stateful_m2m() * v4l2-compliance: Add test for V4L2_FMTDESC_FLAG_ENUM_ALL flag * v4l2-ctl-vidcap: Add options to enumerate all pixel formats * edid-decode: support parsing EDID-Like Data * buildsystem: Start v4l-utils 1.29.0 development cycle * qvidcap: fix core dump * qv4l2: fix crash when disabling openGL * qv4l2: always set m_haveFramebufferSRGB to false * v4l-utils: sync with latest kernel * cec-ctl: add support for CEC_MSG_FL_REPLY_VENDOR_ID * cec-compliance: add tests for CEC_MSG_FL_REPLY_VENDOR_ID * contrib/test/test-media: re-add cec-compliance -A tests * v4l-utils: sync with latest kernel * v4l2-compliance: testRequests(): drop V4L2_BUF_FLAG_QUEUED check * contrib/test/test-media: set log level to info at end * v4l2-compliance: only do request-queued checks while streaming is off * v4l2-compliance: always test blocking wait * v4l-utils: sync with latest kernel * utils/common: add V4L2_CAP_EDID support * v4l2-compliance: add support for V4L2_CAP_EDID * test-media: move visl out of the vivid test sequence * contrib/test/test-media: test unbind in DQBUF * v4l2-ctl/compliance: add -32-time64 variants OBS-URL: https://build.opensuse.org/request/show/1280955 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/v4l-utils?expand=0&rev=86
2025-05-28 20:56:57 +00:00
Index: v4l-utils-1.22.1/lib/libdvbv5/dvb-file.c
===================================================================
--- v4l-utils-1.22.1.orig/lib/libdvbv5/dvb-file.c
+++ v4l-utils-1.22.1/lib/libdvbv5/dvb-file.c
@@ -594,7 +594,8 @@ static int fill_entry(struct dvb_entry *
n_prop = entry->n_props;
entry->props[n_prop].cmd = i;
if (!attr_name || !*attr_name)
- entry->props[n_prop].u.data = atol(value);
+ /* some put stream_id=4294967295 (-1) which is more than LONG_MAX on 32bit... */
+ entry->props[n_prop].u.data = (uint32_t)atoll(value);
else {
for (j = 0; attr_name[j]; j++)
if (!strcasecmp(value, attr_name[j]))
@@ -713,7 +714,8 @@ static int fill_entry(struct dvb_entry *
/* FIXME: this works only for integer values */
n_prop = entry->n_props;
entry->props[n_prop].cmd = cmd;
- entry->props[n_prop].u.data = atol(value);
+ /* some put stream_id=4294967295 (-1) which is more than LONG_MAX on 32bit... */
+ entry->props[n_prop].u.data = (uint32_t)atoll(value);
entry->n_props++;
return 0;