Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
53d2284d
Commit
53d2284d
authored
Apr 20, 2003
by
Christophe Massiot
Browse files
* modules/codec/libmpeg2.c: fixed a problem with some frame rates (thx
gibalou)
parent
539e8b74
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/codec/libmpeg2.c
View file @
53d2284d
...
...
@@ -2,7 +2,7 @@
* libmpeg2.c: mpeg2 video decoder module making use of libmpeg2.
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: libmpeg2.c,v 1.1
1
2003/04/20
12:59:01
massiot Exp $
* $Id: libmpeg2.c,v 1.1
2
2003/04/20
23:42:17
massiot Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -247,6 +247,12 @@ static int RunDecoder( decoder_fifo_t *p_fifo )
p_dec
->
p_info
->
sequence
->
height
,
i_chroma
,
i_aspect
);
msg_Dbg
(
p_dec
->
p_fifo
,
"%dx%d, aspect %d, %u.%03u fps"
,
p_dec
->
p_info
->
sequence
->
width
,
p_dec
->
p_info
->
sequence
->
height
,
i_aspect
,
(
u32
)((
u64
)
1001000000
*
27
/
p_dec
->
p_info
->
sequence
->
frame_period
/
1001
),
(
u32
)((
u64
)
1001000000
*
27
/
p_dec
->
p_info
->
sequence
->
frame_period
%
1001
)
);
mpeg2_custom_fbuf
(
p_dec
->
p_mpeg2dec
,
1
);
/* Set the first 2 reference frames */
...
...
@@ -254,7 +260,7 @@ static int RunDecoder( decoder_fifo_t *p_fifo )
mpeg2_set_buf
(
p_dec
->
p_mpeg2dec
,
buf
,
NULL
);
p_dec
->
p_synchro
=
vout_SynchroInit
(
p_dec
->
p_fifo
,
p_dec
->
p_vout
,
1001
*
1
00
*
27
/
p_dec
->
p_info
->
sequence
->
frame_period
*
10000
);
(
u32
)((
u64
)
10010000
00
*
27
/
p_dec
->
p_info
->
sequence
->
frame_period
)
);
}
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment