Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
5f0dad56
Commit
5f0dad56
authored
Jan 17, 2003
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./modules/codec/spudec/parse.c: fixed a wrapping issue in the subtitle date
calculation in slow-mo.
parent
c92a0496
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/codec/spudec/parse.c
modules/codec/spudec/parse.c
+4
-4
No files found.
modules/codec/spudec/parse.c
View file @
5f0dad56
...
...
@@ -2,7 +2,7 @@
* parse.c: SPU parser
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: parse.c,v 1.
8 2003/01/09 10:12:42
sam Exp $
* $Id: parse.c,v 1.
9 2003/01/17 13:54:11
sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -271,7 +271,7 @@ static int ParseControlSeq( spudec_thread_t *p_spudec,
if
(
i_command
==
SPU_CMD_END
)
{
/* Get the control sequence date */
date
=
GetBits
(
&
p_spudec
->
bit_stream
,
16
)
*
11000
date
=
(
mtime_t
)
GetBits
(
&
p_spudec
->
bit_stream
,
16
)
*
11000
*
p_spudec
->
bit_stream
.
p_pes
->
i_rate
/
DEFAULT_RATE
;
/* Next offset */
...
...
@@ -415,8 +415,8 @@ static int ParseControlSeq( spudec_thread_t *p_spudec,
if
(
p_spu
->
i_stop
<=
p_spu
->
i_start
&&
!
p_spu
->
b_ephemer
)
{
/* This subtitle will live for 5 seconds or until the next subtitle */
p_spu
->
i_stop
=
p_spu
->
i_start
+
500
*
11000
*
p_spudec
->
bit_stream
.
p_pes
->
i_rate
/
DEFAULT_RATE
;
;
p_spu
->
i_stop
=
p_spu
->
i_start
+
(
mtime_t
)
500
*
11000
*
p_spudec
->
bit_stream
.
p_pes
->
i_rate
/
DEFAULT_RATE
;
p_spu
->
b_ephemer
=
VLC_TRUE
;
}
...
...
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