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: dvb-file: Fix error message for some unknown file formats Author: Mauro Carvalho Chehab <[email protected]> Date: Sun Aug 19 16:46:22 2012 -0300 This also solves a bug when parsing ATSC tables. Signed-off-by: Mauro Carvalho Chehab <[email protected]> lib/libdvbv5/dvb-file.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) --- http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=9ec0d32d5d4a5a2114c2c52875e6acb94e57a887 diff --git a/lib/libdvbv5/dvb-file.c b/lib/libdvbv5/dvb-file.c index 2c8905e..f14389f 100644 --- a/lib/libdvbv5/dvb-file.c +++ b/lib/libdvbv5/dvb-file.c @@ -106,15 +106,23 @@ struct dvb_file *parse_format_oneline(const char *fname, if (!strcmp(p, formats[i].id)) break; } + if (!formats[i].id) { + sprintf(err_msg, "Doesn't know how to handle delimiter '%s'", + p); + goto error; + } } else { /* Seek for the delivery system */ for (i = 0; formats[i].delsys != 0; i++) { if (formats[i].delsys == delsys) break; } + if (!formats[i].delsys) { + sprintf(err_msg, "Doesn't know how to parse delivery system %d", + delsys); + goto error; + } } - if (i == ARRAY_SIZE(formats)) - goto error; fmt = &formats[i]; _______________________________________________ linuxtv-commits mailing list [email protected] http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
