Re: [PATCH] Format of DVB PROGRAM N.
Juri Haberland <[email protected]> Tue, 29 May 2007 12:48:23 +0200
| Newsgroups | gmane.comp.video.mplayer.user.dvb |
|---|---|
| Message-ID | <[email protected]> |
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