[MPlayer-dvb] [PATCH] Format of DVB PROGRAM N.
Juri Haberland
juri at koschikode.com
Tue May 29 12:48:23 CEST 2007
Nico Sabbi wrote:
> Mario Rossi wrote:
>> BBC HD1 has a PROGRAM N. (36932) bigger than 2^15, so it does not fit
>> well into a signed variable.
>>
>> With this patch the ouput is correct.
>>- mp_msg(MSGT_DEMUXER, MSGL_INFO, " PROGRAM N. %d\n", param->prog);
>>+ mp_msg(MSGT_DEMUXER, MSGL_INFO, " PROGRAM N. %hu\n", param->prog);
> %d is more than enough for a 16 bit int. Excerpt from sprintf()
So it should be just a %u, nothing more, nothing less.
Cheers,
Juri
More information about the MPlayer-dvb
mailing list