v4l-utils/v4l-utils-32bitfix.patch

25 lines
1.0 KiB
Diff
Raw Normal View History

Accepting request 935854 from home:dirkmueller:Factory - update to 1.22.1 * add missing include for uClibc-ng * buildsystem: Start v4l-utils 1.21.0 development cycle * Build with libbpf, remove local sources * cec: add active sensing test for Audio Rate Control messages * cec: add Deck Control wake-up handling tests * cec: add invalid operand test for Audio Rate Control messages * cec: add One Touch Record Standby tests * cec: add tests for Deck Control message * cec: add tests for Deck Play message * cec: add tests for Give Deck Status message * cec-compliance: add Audio System mask to Set Audio Rate * cec-compliance: add cec-test-tuner-record-timer.cpp * cec-compliance: add 'reason' sanity check. * cec-compliance: Add version command * cec-compliance: clarify a power transition test * cec-compliance: clarify a warning * cec-compliance: don't skip tests if phys addr is invalid * cec-compliance: fix broken timer tests * cec-compliance: fix confusing 'Transient state' message * cec-compliance: fix 'unresponsive' detection * cec-compliance/follower: fix type comparison warnings * cec-compliance: hardcode audio_out_delay to 1 if not set * cec-compliance: improve confusing message * cec-compliance: improve current latency checks * cec-compliance: improve error message * cec-compliance: improve testLostMsgs test * cec-compliance: improve warning about late reply * cec-compliance: move audio helper functions to cec-test-audio.cpp * cec-compliance: move CDC helper functions to cec-test.cpp OBS-URL: https://build.opensuse.org/request/show/935854 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/v4l-utils?expand=0&rev=79
2021-12-09 21:36:58 +01:00
Index: v4l-utils-1.22.1/lib/libdvbv5/dvb-file.c
===================================================================
Accepting request 935854 from home:dirkmueller:Factory - update to 1.22.1 * add missing include for uClibc-ng * buildsystem: Start v4l-utils 1.21.0 development cycle * Build with libbpf, remove local sources * cec: add active sensing test for Audio Rate Control messages * cec: add Deck Control wake-up handling tests * cec: add invalid operand test for Audio Rate Control messages * cec: add One Touch Record Standby tests * cec: add tests for Deck Control message * cec: add tests for Deck Play message * cec: add tests for Give Deck Status message * cec-compliance: add Audio System mask to Set Audio Rate * cec-compliance: add cec-test-tuner-record-timer.cpp * cec-compliance: add 'reason' sanity check. * cec-compliance: Add version command * cec-compliance: clarify a power transition test * cec-compliance: clarify a warning * cec-compliance: don't skip tests if phys addr is invalid * cec-compliance: fix broken timer tests * cec-compliance: fix confusing 'Transient state' message * cec-compliance: fix 'unresponsive' detection * cec-compliance/follower: fix type comparison warnings * cec-compliance: hardcode audio_out_delay to 1 if not set * cec-compliance: improve confusing message * cec-compliance: improve current latency checks * cec-compliance: improve error message * cec-compliance: improve testLostMsgs test * cec-compliance: improve warning about late reply * cec-compliance: move audio helper functions to cec-test-audio.cpp * cec-compliance: move CDC helper functions to cec-test.cpp OBS-URL: https://build.opensuse.org/request/show/935854 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/v4l-utils?expand=0&rev=79
2021-12-09 21:36:58 +01:00
--- 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]))
Accepting request 935854 from home:dirkmueller:Factory - update to 1.22.1 * add missing include for uClibc-ng * buildsystem: Start v4l-utils 1.21.0 development cycle * Build with libbpf, remove local sources * cec: add active sensing test for Audio Rate Control messages * cec: add Deck Control wake-up handling tests * cec: add invalid operand test for Audio Rate Control messages * cec: add One Touch Record Standby tests * cec: add tests for Deck Control message * cec: add tests for Deck Play message * cec: add tests for Give Deck Status message * cec-compliance: add Audio System mask to Set Audio Rate * cec-compliance: add cec-test-tuner-record-timer.cpp * cec-compliance: add 'reason' sanity check. * cec-compliance: Add version command * cec-compliance: clarify a power transition test * cec-compliance: clarify a warning * cec-compliance: don't skip tests if phys addr is invalid * cec-compliance: fix broken timer tests * cec-compliance: fix confusing 'Transient state' message * cec-compliance: fix 'unresponsive' detection * cec-compliance/follower: fix type comparison warnings * cec-compliance: hardcode audio_out_delay to 1 if not set * cec-compliance: improve confusing message * cec-compliance: improve current latency checks * cec-compliance: improve error message * cec-compliance: improve testLostMsgs test * cec-compliance: improve warning about late reply * cec-compliance: move audio helper functions to cec-test-audio.cpp * cec-compliance: move CDC helper functions to cec-test.cpp OBS-URL: https://build.opensuse.org/request/show/935854 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/v4l-utils?expand=0&rev=79
2021-12-09 21:36:58 +01:00
@@ -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;