]> git.sesse.net Git - vlc/commitdiff
Fixed typo in MJD decoding (Fix EIT informations)
authorLaurent Aimar <fenrir@videolan.org>
Sun, 13 Jan 2008 21:11:27 +0000 (21:11 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 13 Jan 2008 21:11:27 +0000 (21:11 +0000)
modules/demux/ts.c

index 402d781b73d171856e1dbc0fa6af6c28ddb2978d..7c9d52d30ded6e3d01f72093e7b2e392944199d8 100644 (file)
@@ -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))