goto exception;
}
- debug_msg(RELEASE, "FFMPEG: dur %lld, start %lld\n", pFormatCtx->duration, pFormatCtx->start_time);
+ debug_msg(RELEASE, "FFMPEG: dur %"PRId64", start %"PRId64"\n", pFormatCtx->duration, pFormatCtx->start_time);
/**
*@note asf has long duration bug. and Some content's start time is wrong(negative number).
*/
if (pFormatCtx->start_time < 0) {
- debug_warning(DEBUG, "Wrong Start time = %lld\n", pFormatCtx->start_time);
+ debug_warning(DEBUG, "Wrong Start time = %"PRId64"\n", pFormatCtx->start_time);
formatContext->duration = (long long)(pFormatCtx->duration) * 1000 / AV_TIME_BASE;
} else {
formatContext->duration = (long long)(pFormatCtx->duration + pFormatCtx->start_time) * 1000 / AV_TIME_BASE;
#endif
duration = duration * MILLION;
if ((duration <= 0) || (duration <= pos)) {
- debug_error(DEBUG, "duration error duration[%f] pos[%lld]", duration, pos);
+ debug_error(DEBUG, "duration error duration[%f] pos[%"PRId64"]", duration, pos);
ret = MMFILE_FORMAT_FAIL;
goto exception;
}
else
mmfile_free(temp_text);
- debug_msg(RELEASE, "formatContext->album=%s, strlen=%d\n", formatContext->album, strlen(formatContext->album));
+ debug_msg(RELEASE, "formatContext->album=%s, strlen=%zu\n", formatContext->album, strlen(formatContext->album));
}
if (trackFlags) {
if (buffer[i] == 's' && buffer[i + 1] == 'v' && buffer[i + 2] == 'h' && buffer[i + 3] == 'd') {
debug_warning(DEBUG, "svhd data found at offset %lld\n", basic_header->start_offset + i);
ParseSvhdData(formatContext, fp, basic_header->start_offset + i + 4, mmfile_io_be_uint32(*((uint32_t*)(buffer - 4 + i))));
- debug_msg(RELEASE, "formatContext->metadataSourceV2 = %s (length = %d)", formatContext->metadataSourceV2, strlen(formatContext->metadataSourceV2));
+ debug_msg(RELEASE, "formatContext->metadataSourceV2 = %s (length = %zu)", formatContext->metadataSourceV2, strlen(formatContext->metadataSourceV2));
}
if (buffer[i] == 'p' && buffer[i + 1] == 'r' && buffer[i + 2] == 'o' && buffer[i + 3] == 'j') {
debug_warning(DEBUG, "proj data found at offset %lld\n", basic_header->start_offset + i);