From 64d6b94a1caff564af3680dbb4318e33755fd208 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Fri, 23 May 2003 10:52:40 +0000 Subject: fix the miscalculates and then copy'n'pasted durations we discovered some time ago CVS patchset: 4904 CVS date: 2003/05/23 10:52:40 --- src/libmpeg2/decode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libmpeg2/decode.c') diff --git a/src/libmpeg2/decode.c b/src/libmpeg2/decode.c index e9093bc85..5f4aa0338 100644 --- a/src/libmpeg2/decode.c +++ b/src/libmpeg2/decode.c @@ -90,7 +90,7 @@ static inline void get_frame_duration (mpeg2dec_t * mpeg2dec, vo_frame_t *frame) { switch (mpeg2dec->picture->frame_rate_code) { case 1: /* 23.976 fps */ - frame->duration = 3913; + frame->duration = 3754; /* actually it's 3753.75 */ break; case 2: /* 24 fps */ frame->duration = 3750; @@ -108,10 +108,10 @@ static inline void get_frame_duration (mpeg2dec_t * mpeg2dec, vo_frame_t *frame) frame->duration = 1800; break; case 7: /* 59.94 fps */ - frame->duration = 1525; + frame->duration = 1502; /* actually it's 1501.5 */ break; case 8: /* 60 fps */ - frame->duration = 1509; + frame->duration = 1500; break; default: /* printf ("invalid/unknown frame rate code : %d \n", -- cgit v1.2.3