Mercurial > libavformat.hg
comparison wc3movie.c @ 4855:adec0fc30104 libavformat
Fix "unrecognized WC3 chunk" debug output which was broken r18444 due to sign expansion.
author | reimar |
---|---|
date | Sat, 11 Apr 2009 21:45:57 +0000 |
parents | 28a0c59a9625 |
children | 1273a2b9c32a |
comparison
equal
deleted
inserted
replaced
4854:28a0c59a9625 | 4855:adec0fc30104 |
---|---|
222 current_palette++; | 222 current_palette++; |
223 break; | 223 break; |
224 | 224 |
225 default: | 225 default: |
226 av_log(s, AV_LOG_ERROR, " unrecognized WC3 chunk: %c%c%c%c (0x%02X%02X%02X%02X)\n", | 226 av_log(s, AV_LOG_ERROR, " unrecognized WC3 chunk: %c%c%c%c (0x%02X%02X%02X%02X)\n", |
227 (char)fourcc_tag, (char)(fourcc_tag >> 8), (char)(fourcc_tag >> 16), (char)(fourcc_tag >> 24), | 227 (uint8_t)fourcc_tag, (uint8_t)(fourcc_tag >> 8), (uint8_t)(fourcc_tag >> 16), (uint8_t)(fourcc_tag >> 24), |
228 (char)fourcc_tag, (char)(fourcc_tag >> 8), (char)(fourcc_tag >> 16), (char)(fourcc_tag >> 24)); | 228 (uint8_t)fourcc_tag, (uint8_t)(fourcc_tag >> 8), (uint8_t)(fourcc_tag >> 16), (uint8_t)(fourcc_tag >> 24)); |
229 return AVERROR_INVALIDDATA; | 229 return AVERROR_INVALIDDATA; |
230 break; | 230 break; |
231 } | 231 } |
232 | 232 |
233 fourcc_tag = get_le32(pb); | 233 fourcc_tag = get_le32(pb); |
354 packet_read = 1; | 354 packet_read = 1; |
355 break; | 355 break; |
356 | 356 |
357 default: | 357 default: |
358 av_log (s, AV_LOG_ERROR, " unrecognized WC3 chunk: %c%c%c%c (0x%02X%02X%02X%02X)\n", | 358 av_log (s, AV_LOG_ERROR, " unrecognized WC3 chunk: %c%c%c%c (0x%02X%02X%02X%02X)\n", |
359 (char)fourcc_tag, (char)(fourcc_tag >> 8), (char)(fourcc_tag >> 16), (char)(fourcc_tag >> 24), | 359 (uint8_t)fourcc_tag, (uint8_t)(fourcc_tag >> 8), (uint8_t)(fourcc_tag >> 16), (uint8_t)(fourcc_tag >> 24), |
360 (char)fourcc_tag, (char)(fourcc_tag >> 8), (char)(fourcc_tag >> 16), (char)(fourcc_tag >> 24)); | 360 (uint8_t)fourcc_tag, (uint8_t)(fourcc_tag >> 8), (uint8_t)(fourcc_tag >> 16), (uint8_t)(fourcc_tag >> 24)); |
361 ret = AVERROR_INVALIDDATA; | 361 ret = AVERROR_INVALIDDATA; |
362 packet_read = 1; | 362 packet_read = 1; |
363 break; | 363 break; |
364 } | 364 } |
365 } | 365 } |