This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: desc_t2_delivery: consider valid to have a short T2 descriptor
Author:  Mauro Carvalho Chehab <mche...@s-opensource.com>
Date:    Wed May 3 08:51:35 2017 -0300

ETSI 30468 v1.13.1 accepts T2 delivery system descriptors with
size == 4. So, we should not return an error if the descriptor
has a "short" size.

Signed-off-by: Mauro Carvalho Chehab <mche...@s-opensource.com>

 lib/libdvbv5/descriptors/desc_t2_delivery.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=5998e4fc5cd8208f42a5f718170ad1a21e52f764
diff --git a/lib/libdvbv5/descriptors/desc_t2_delivery.c 
b/lib/libdvbv5/descriptors/desc_t2_delivery.c
index 3831ac13aee3..c6ce2585d5b9 100644
--- a/lib/libdvbv5/descriptors/desc_t2_delivery.c
+++ b/lib/libdvbv5/descriptors/desc_t2_delivery.c
@@ -43,9 +43,11 @@ int dvb_desc_t2_delivery_init(struct dvb_v5_fe_parms *parms,
                memcpy(d, buf, len);
                bswap16(d->system_id);
 
-               if (desc_len != len)
-                       dvb_logwarn("T2 delivery descriptor is truncated");
+               /* It is valid to have length == 4 */
+               if (desc_len == len)
+                       return 0;
 
+               dvb_logwarn("T2 delivery descriptor is truncated");
                return -2;
        }
        memcpy(d, buf, len2);

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to