1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 14:22:17 +00:00

demux_mkv: Fix "max_cll" warning.

On some platforms, unsigned long and uint64_t aren't the same type,
after all. As this is just a MP_VERBOSE message, risking truncation in
some cases seems OK.
This commit is contained in:
Rudolf Polzer 2017-06-22 21:23:26 -04:00
parent f001b47cb8
commit cad313beff

View File

@ -571,7 +571,8 @@ static void parse_trackcolour(struct demuxer *demuxer, struct mkv_track *track,
} }
if (colour->n_max_cll) { if (colour->n_max_cll) {
track->color.sig_peak = colour->max_cll / MP_REF_WHITE; track->color.sig_peak = colour->max_cll / MP_REF_WHITE;
MP_VERBOSE(demuxer, "| + MaxCLL: %lu\n", colour->max_cll); MP_VERBOSE(demuxer, "| + MaxCLL: %lu\n",
(unsigned long)colour->max_cll);
} }
// if MaxCLL is unavailable, try falling back to the mastering metadata // if MaxCLL is unavailable, try falling back to the mastering metadata
if (!track->color.sig_peak && colour->n_mastering_metadata) { if (!track->color.sig_peak && colour->n_mastering_metadata) {