From 20c7414c71174df33ede6e89cd98e99b662e2174 Mon Sep 17 00:00:00 2001 From: Martin Kaiser Date: Tue, 10 Dec 2013 22:08:07 +0000 Subject: use large positve values for illegal DVB-SI string encodings interpret encoding fields as UINT32 so that the displayed value matches the actual bytes in the packet svn path=/trunk/; revision=53927 --- epan/charsets.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'epan/charsets.h') diff --git a/epan/charsets.h b/epan/charsets.h index a4bc4ced40..71caa967b9 100644 --- a/epan/charsets.h +++ b/epan/charsets.h @@ -34,10 +34,6 @@ extern "C" { #endif /* __cplusplus */ typedef enum { - DVB_ENCODING_INVALID = -3, /* length invalid */ - DVB_ENCODING_RESERVED = -2, /* reserved by spec */ - - DVB_ENCODING_UNKNOWN = -1, /* not defined by spec */ DVB_ENCODING_LATIN = 0, DVB_ENCODING_ISO_8859_5, @@ -70,6 +66,10 @@ typedef enum { DVB_ENCODING_EXT_ISO_8859_13 = DVB_ENCODING_EXT_BASE | 13, DVB_ENCODING_EXT_ISO_8859_14 = DVB_ENCODING_EXT_BASE | 14, DVB_ENCODING_EXT_ISO_8859_15 = DVB_ENCODING_EXT_BASE | 15, + + DVB_ENCODING_INVALID = G_MAXUINT32-3, /* length invalid */ + DVB_ENCODING_RESERVED = G_MAXUINT32-2, /* reserved by spec */ + DVB_ENCODING_UNKNOWN = G_MAXUINT32-1, /* not defined by spec */ } dvb_encoding_e; extern const value_string dvb_string_encoding_vals[]; -- cgit v1.2.3