[PATCH] Format of DVB PROGRAM N.
"Mario Rossi" <[email protected]> Mon, 28 May 2007 22:21:20 +0100
| Newsgroups | gmane.comp.video.mplayer.user.dvb |
|---|---|
| Message-ID | <[email protected]> |
Hi, 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. Cheers _______________________________________________ MPlayer-dvb mailing list [email protected] http://lists.mplayerhq.hu/mailman/listinfo/mplayer-dvb
dvb.diff
(text/x-patch, 459 B)
Index: libmpdemux/demux_ts.c
===================================================================
--- libmpdemux/demux_ts.c (revision 23404)
+++ libmpdemux/demux_ts.c (working copy)
@@ -874,7 +874,7 @@
{
if(demuxer->stream->eof && (ret == 0))
ret = init_pos;
- mp_msg(MSGT_DEMUXER, MSGL_INFO, " PROGRAM N. %d\n", param->prog);
+ mp_msg(MSGT_DEMUXER, MSGL_INFO, " PROGRAM N. %hu\n", param->prog);
}
else
mp_msg(MSGT_DEMUXER, MSGL_INFO, "\n");