Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
446d5679
Commit
446d5679
authored
Sep 02, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/theora.c: oops, introduced a bug in pts calculation.
parent
d21fb144
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/codec/theora.c
modules/codec/theora.c
+5
-5
No files found.
modules/codec/theora.c
View file @
446d5679
...
...
@@ -2,7 +2,7 @@
* theora.c: theora decoder module making use of libtheora.
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: theora.c,v 1.
6 2003/09/02 20:19:2
5 gbazin Exp $
* $Id: theora.c,v 1.
7 2003/09/02 22:36:5
5 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -388,8 +388,8 @@ static int DecodePacket( decoder_t *p_dec, ogg_packet *p_oggpacket )
vout_DisplayPicture
(
p_sys
->
p_vout
,
p_pic
);
/* Date management */
p_sys
->
i_pts
+=
(
1000000
*
p_sys
->
ti
.
fps_numer
ator
/
p_sys
->
ti
.
fps_
denomin
ator
);
/* 1 frame per packet */
p_sys
->
i_pts
+=
(
I64C
(
1000000
)
*
p_sys
->
ti
.
fps_denomin
ator
/
p_sys
->
ti
.
fps_
numer
ator
);
/* 1 frame per packet */
return
VLC_SUCCESS
;
}
...
...
@@ -412,8 +412,8 @@ static int SendPacket( decoder_t *p_dec, ogg_packet *p_oggpacket )
/* Date management */
p_sout_buffer
->
i_dts
=
p_sout_buffer
->
i_pts
=
p_sys
->
i_pts
;
p_sys
->
i_pts
+=
(
1000000
*
p_sys
->
ti
.
fps_numer
ator
/
p_sys
->
ti
.
fps_
denomin
ator
);
/* 1 frame per packet */
p_sys
->
i_pts
+=
(
I64C
(
1000000
)
*
p_sys
->
ti
.
fps_denomin
ator
/
p_sys
->
ti
.
fps_
numer
ator
);
/* 1 frame per packet */
if
(
p_sys
->
i_headers
>=
3
)
p_sout_buffer
->
i_length
=
p_sys
->
i_pts
-
p_sout_buffer
->
i_pts
;
...
...
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