Mercurial > mplayer.hg
comparison libmpdemux/ebml.c @ 12376:d9ff6528514d
more nonsense lvalue casts, at least these aren't quite as stupid
author | rfelker |
---|---|
date | Sat, 01 May 2004 18:34:23 +0000 |
parents | 9a81d7b4c0b6 |
children | ab937f4a17ad |
comparison
equal
deleted
inserted
replaced
12375:48a655d09522 | 12376:d9ff6528514d |
---|---|
49 if (i >= 8) | 49 if (i >= 8) |
50 return EBML_UINT_INVALID; | 50 return EBML_UINT_INVALID; |
51 j = i+1; | 51 j = i+1; |
52 if (length) | 52 if (length) |
53 *length = j; | 53 *length = j; |
54 if (((int)num &= (len_mask - 1)) == len_mask - 1) | 54 if ((num &= (len_mask - 1)) == len_mask - 1) |
55 num_ffs++; | 55 num_ffs++; |
56 while (i--) | 56 while (i--) |
57 { | 57 { |
58 num = (num << 8) | *buffer++; | 58 num = (num << 8) | *buffer++; |
59 if ((num & 0xFF) == 0xFF) | 59 if ((num & 0xFF) == 0xFF) |
97 if (i >= 8) | 97 if (i >= 8) |
98 return EBML_UINT_INVALID; | 98 return EBML_UINT_INVALID; |
99 j = i+1; | 99 j = i+1; |
100 if (length) | 100 if (length) |
101 *length = j; | 101 *length = j; |
102 if (((int)len &= (len_mask - 1)) == len_mask - 1) | 102 if ((len &= (len_mask - 1)) == len_mask - 1) |
103 num_ffs++; | 103 num_ffs++; |
104 while (i--) | 104 while (i--) |
105 { | 105 { |
106 len = (len << 8) | stream_read_char (s); | 106 len = (len << 8) | stream_read_char (s); |
107 if ((len & 0xFF) == 0xFF) | 107 if ((len & 0xFF) == 0xFF) |