mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 20:40:27 +00:00
Fixed print of some FourCCs
This commit is contained in:
committed by
Martin Pulec
parent
5cfd068136
commit
4d2740b2b8
@@ -51,7 +51,7 @@ int read_wav_header(FILE *wav_file, struct wav_metadata *metadata)
|
||||
|
||||
READ_N(buffer, 4);
|
||||
if(strncmp(buffer, "RIFF", 4) != 0) {
|
||||
log_msg(LOG_LEVEL_ERROR, "[WAV] Expected RIFF chunk, %4s given.\n", buffer);
|
||||
log_msg(LOG_LEVEL_ERROR, "[WAV] Expected RIFF chunk, %.4s given.\n", buffer);
|
||||
return WAV_HDR_PARSE_WRONG_FORMAT;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ int read_wav_header(FILE *wav_file, struct wav_metadata *metadata)
|
||||
|
||||
READ_N(buffer, 4);
|
||||
if (strncmp(buffer, "WAVE", 4) != 0) {
|
||||
log_msg(LOG_LEVEL_ERROR, "[WAV] Expected WAVE chunk, %4s given.\n", buffer);
|
||||
log_msg(LOG_LEVEL_ERROR, "[WAV] Expected WAVE chunk, %.4s given.\n", buffer);
|
||||
return WAV_HDR_PARSE_WRONG_FORMAT;
|
||||
}
|
||||
|
||||
|
||||
@@ -1234,7 +1234,7 @@ bool parse_video_hdr(uint32_t *hdr, struct video_desc *desc)
|
||||
desc->height = ntohl(hdr[3]) & 0xffff;
|
||||
desc->color_spec = get_codec_from_fcc(hdr[4]);
|
||||
if(desc->color_spec == VIDEO_CODEC_NONE) {
|
||||
log_msg(LOG_LEVEL_ERROR, "Unknown FourCC \"%4s\"!\n", (char *) &hdr[4]);
|
||||
log_msg(LOG_LEVEL_ERROR, "Unknown FourCC \"%.4s\"!\n", (char *) &hdr[4]);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user