2021-12-09 21:36:58 +01:00
|
|
|
Index: v4l-utils-1.22.1/lib/libdvbv5/dvb-file.c
|
2019-11-04 16:50:27 +01:00
|
|
|
===================================================================
|
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 *
|
2019-11-04 16:50:27 +01:00
|
|
|
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]))
|
2021-12-09 21:36:58 +01:00
|
|
|
@@ -713,7 +714,8 @@ static int fill_entry(struct dvb_entry *
|
2019-11-04 16:50:27 +01:00
|
|
|
/* 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;
|