summaryrefslogtreecommitdiff
path: root/src/libmpeg2/decode.c
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-05-23 10:52:40 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-05-23 10:52:40 +0000
commit64d6b94a1caff564af3680dbb4318e33755fd208 (patch)
tree5b2c8db00c80428386a2332efe428e6a0a782cd0 /src/libmpeg2/decode.c
parent7b9c078c1886c09360f2fffc454a5eeb19de9e3b (diff)
downloadxine-lib-64d6b94a1caff564af3680dbb4318e33755fd208.tar.gz
xine-lib-64d6b94a1caff564af3680dbb4318e33755fd208.tar.bz2
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
Diffstat (limited to 'src/libmpeg2/decode.c')
-rw-r--r--src/libmpeg2/decode.c6
1 files changed, 3 insertions, 3 deletions
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",