Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
53d2284d
Commit
53d2284d
authored
Apr 20, 2003
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/libmpeg2.c: fixed a problem with some frame rates (thx
gibalou)
parent
539e8b74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
modules/codec/libmpeg2.c
modules/codec/libmpeg2.c
+8
-2
No files found.
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
*
100
*
27
/
p_dec
->
p_info
->
sequence
->
frame_period
*
10000
);
(
u32
)((
u64
)
1001000000
*
27
/
p_dec
->
p_info
->
sequence
->
frame_period
)
);
}
break
;
...
...
Write
Preview
Markdown
is supported
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