List Info

Thread: : r622 - src/trunk/nututils/nutparse.c




: r622 - src/trunk/nututils/nutparse.c
country flaguser name
Switzerland
2008-02-13 06:40:46
Author: cladisch
Date: Wed Feb 13 13:40:44 2008
New Revision: 622

Log:
check frame code table delta match time restriction

Modified:
   src/trunk/nututils/nutparse.c

Modified: src/trunk/nututils/nutparse.c
============================================================
==================
--- src/trunk/nututils/nutparse.c	(original)
+++ src/trunk/nututils/nutparse.c	Wed Feb 13 13:40:44 2008
 -324,6
+324,9  static void parse_main_header(void)
 		if (tmp_fields > 6) {
 			tmp_match = read_svar();
 			printf("  tmp_match: %"PRId64"n",
tmp_match);
+			if ((tmp_match <= -32768 || tmp_match >= 32768)
&&
+			    tmp_match != 1 - (INT64_C(1) << 62))
+				error("absolute delta match time must be less than
32768");
 		}
 		for (j64 = 7; j64 < tmp_fields; ++j64)
 			printf("  tmp_reserved[%"PRIu64"]:
%"PRIu64"n", j64, read_var());
_______________________________________________
NUT-devel mailing list
NUT-develmplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/nut-devel

Re: : r622 - src/trunk/nututils/nutparse.c
country flaguser name
United States
2008-02-13 11:57:08
On Wed, Feb 13, 2008 at 01:40:46PM +0100, cladisch wrote:
> Author: cladisch
> Date: Wed Feb 13 13:40:44 2008
> New Revision: 622
> 
> Log:
> check frame code table delta match time restriction
> 
> Modified:
>    src/trunk/nututils/nutparse.c
> 
> Modified: src/trunk/nututils/nutparse.c
>
============================================================
==================
> --- src/trunk/nututils/nutparse.c	(original)
> +++ src/trunk/nututils/nutparse.c	Wed Feb 13 13:40:44
2008
>  -324,6 +324,9  static void parse_main_header(void)
>  		if (tmp_fields > 6) {
>  			tmp_match = read_svar();
>  			printf("  tmp_match:
%"PRId64"n", tmp_match);
> +			if ((tmp_match <= -32768 || tmp_match >=
32768) &&
> +			    tmp_match != 1 - (INT64_C(1) << 62))
> +				error("absolute delta match time must be less
than 32768");

Please wait for some discussion of new changes before
committing them
to the code or spec..

Rich
_______________________________________________
NUT-devel mailing list
NUT-develmplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/nut-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )