|
Lines 4023-4028
Link Here
|
| 4023 |
if (len < 34) /* smallest header of the lot */ |
4023 |
if (len < 34) /* smallest header of the lot */ |
| 4024 |
return; |
4024 |
return; |
| 4025 |
data = gst_type_find_peek (tf, 0, 4); |
4025 |
data = gst_type_find_peek (tf, 0, 4); |
|
|
4026 |
if (data == NULL) return; |
| 4026 |
resolution = GST_READ_UINT16_BE (data); |
4027 |
resolution = GST_READ_UINT16_BE (data); |
| 4027 |
if (len == 32034) { |
4028 |
if (len == 32034) { |
| 4028 |
/* could be DEGAS */ |
4029 |
/* could be DEGAS */ |
|
Lines 4033-4038
Link Here
|
| 4033 |
/* could be DEGAS Elite */ |
4034 |
/* could be DEGAS Elite */ |
| 4034 |
if (resolution <= 2) { |
4035 |
if (resolution <= 2) { |
| 4035 |
data = gst_type_find_peek (tf, len - 16, 8); |
4036 |
data = gst_type_find_peek (tf, len - 16, 8); |
|
|
4037 |
if (data == NULL) return; |
| 4036 |
for (n = 0; n < 4; n++) { |
4038 |
for (n = 0; n < 4; n++) { |
| 4037 |
if (GST_READ_UINT16_BE (data + n * 2) > 2) |
4039 |
if (GST_READ_UINT16_BE (data + n * 2) > 2) |
| 4038 |
return; |
4040 |
return; |
|
Lines 4045-4050
Link Here
|
| 4045 |
it does have 4 16 bytes values near the end that are 0-2 though. */ |
4047 |
it does have 4 16 bytes values near the end that are 0-2 though. */ |
| 4046 |
if ((resolution & 0x8000) && (resolution & 0x7fff) <= 2) { |
4048 |
if ((resolution & 0x8000) && (resolution & 0x7fff) <= 2) { |
| 4047 |
data = gst_type_find_peek (tf, len - 16, 8); |
4049 |
data = gst_type_find_peek (tf, len - 16, 8); |
|
|
4050 |
if (data == NULL) return; |
| 4048 |
for (n = 0; n < 4; n++) { |
4051 |
for (n = 0; n < 4; n++) { |
| 4049 |
if (GST_READ_UINT16_BE (data + n * 2) > 2) |
4052 |
if (GST_READ_UINT16_BE (data + n * 2) > 2) |
| 4050 |
return; |
4053 |
return; |