From 580650d5e920531dd985c14c7d11a9b9a24acc74 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sun, 13 Jan 2008 21:11:27 +0000 Subject: [PATCH] Fixed typo in MJD decoding (Fix EIT informations) --- modules/demux/ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/demux/ts.c b/modules/demux/ts.c index 402d781b73..7c9d52d30d 100644 --- a/modules/demux/ts.c +++ b/modules/demux/ts.c @@ -2584,7 +2584,7 @@ static void EITDecodeMjd( int i_mjd, int *p_y, int *p_m, int *p_d ) const int c = ( mp == 14 || mp == 15 ) ? 1 : 0; *p_y = 1900 + yp + c*1; - *p_m = mp - 1 + c*12; + *p_m = mp - 1 - c*12; *p_d = i_mjd - 14956 - (int)(yp*365.25) - (int)(mp*30.6001); } #define CVT_FROM_BCD(v) ((((v) >> 4)&0xf)*10 + ((v)&0xf)) -- 2.39.2