[libdvdnav-devel] Do not use an assert on ifo_print
Jean-Baptiste Kempf
git at videolan.org
Wed Apr 9 16:05:30 CEST 2014
libdvdread | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Apr 9 16:04:36 2014 +0200| [dab3e8c5556c15e05c67df5a307453dc95104d47] | committer: Jean-Baptiste Kempf
Do not use an assert on ifo_print
> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=dab3e8c5556c15e05c67df5a307453dc95104d47
---
src/ifo_print.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ifo_print.c b/src/ifo_print.c
index f4cb007..1d6b64b 100644
--- a/src/ifo_print.c
+++ b/src/ifo_print.c
@@ -268,7 +268,8 @@ static void ifo_print_audio_attributes(int level, audio_attr_t *attr) {
switch(attr->lang_type) {
case 0:
// not specified
- assert(attr->lang_code == 0 || attr->lang_code == 0xffff);
+ if(attr->lang_code != 0 && attr->lang_code != 0xffff)
+ printf("Lang_code 0x%x, please send a bug report!", attr->lang_code);
break;
case 1:
printf("%c%c ", attr->lang_code>>8, attr->lang_code & 0xff);
More information about the libdvdnav-devel
mailing list