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

Subject: libdvbv5: FIx check for available adaptation field
Author:  Gregor Jasny <[email protected]>
Date:    Wed Apr 23 08:43:09 2014 +0200

The field is only a single bit wide, so applying a the
0x2 mask will never be true.

Detected by Coverity.

Signed-off-by: Gregor Jasny <[email protected]>
CC: Mauro Carvalho Chehab <[email protected]>

 lib/libdvbv5/tables/mpeg_ts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=b34799dd37e72b1151cd16f9df46bf54a28fb74d

diff --git a/lib/libdvbv5/tables/mpeg_ts.c b/lib/libdvbv5/tables/mpeg_ts.c
index df32484..03a565f 100644
--- a/lib/libdvbv5/tables/mpeg_ts.c
+++ b/lib/libdvbv5/tables/mpeg_ts.c
@@ -64,7 +64,7 @@ void dvb_mpeg_ts_print(struct dvb_v5_fe_parms *parms, struct 
dvb_mpeg_ts *ts)
        dvb_loginfo(" - scrambling         %d", ts->scrambling);
        dvb_loginfo(" - adaptation_field   %d", ts->adaptation_field);
        dvb_loginfo(" - continuity_counter %d", ts->continuity_counter);
-       if (ts->adaptation_field & 0x2) {
+       if (ts->adaptation_field) {
                dvb_loginfo(" Adaption Field");
                 dvb_loginfo("   - length         %d", ts->adaption->length);
                 dvb_loginfo("   - discontinued   %d", 
ts->adaption->discontinued);

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to