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
24e0e49b
Commit
24e0e49b
authored
Nov 21, 2002
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/ogg.c: small bug-fix for my previous commit.
parent
4b8e273c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
modules/demux/ogg.c
modules/demux/ogg.c
+7
-8
No files found.
modules/demux/ogg.c
View file @
24e0e49b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ogg.c : ogg stream input module for vlc
* ogg.c : ogg stream input module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: ogg.c,v 1.1
1 2002/11/21 09:39:39
gbazin Exp $
* $Id: ogg.c,v 1.1
2 2002/11/21 10:12:34
gbazin Exp $
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
*
...
@@ -339,12 +339,11 @@ static void Ogg_UpdatePCR( logical_stream_t *p_stream,
...
@@ -339,12 +339,11 @@ static void Ogg_UpdatePCR( logical_stream_t *p_stream,
else
else
p_stream
->
i_pcr
=
-
1
;
p_stream
->
i_pcr
=
-
1
;
/* no granulepos available, try to interpolate the pcr */
/* no granulepos available, try to interpolate the pcr.
* If we can't then don't touch the old value. */
if
(
p_stream
->
i_bitrate
)
if
(
p_stream
->
i_bitrate
)
p_stream
->
i_interpolated_pcr
+=
(
p_oggpacket
->
bytes
*
90000
p_stream
->
i_interpolated_pcr
+=
(
p_oggpacket
->
bytes
*
90000
/
p_stream
->
i_bitrate
/
8
);
/
p_stream
->
i_bitrate
/
8
);
else
p_stream
->
i_interpolated_pcr
=
-
1
;
}
}
}
}
...
@@ -1133,14 +1132,14 @@ static int Demux( input_thread_t * p_input )
...
@@ -1133,14 +1132,14 @@ static int Demux( input_thread_t * p_input )
}
}
}
}
p_ogg
->
i_pcr
=
INT_MAX
;
i_stream
=
0
;
for
(
i_stream
=
0
;
i_stream
<
p_ogg
->
i_streams
;
i_stream
++
)
p_ogg
->
i_pcr
=
p_stream
->
i_interpolated_pcr
;
for
(
;
i_stream
<
p_ogg
->
i_streams
;
i_stream
++
)
{
{
if
(
p_stream
->
i_cat
==
SPU_ES
)
if
(
p_stream
->
i_cat
==
SPU_ES
)
continue
;
continue
;
if
(
p_stream
->
i_interpolated_pcr
>=
0
&&
if
(
p_stream
->
i_interpolated_pcr
<
p_ogg
->
i_pcr
)
p_stream
->
i_interpolated_pcr
<
p_ogg
->
i_pcr
)
p_ogg
->
i_pcr
=
p_stream
->
i_interpolated_pcr
;
p_ogg
->
i_pcr
=
p_stream
->
i_interpolated_pcr
;
}
}
#undef p_stream
#undef p_stream
...
...
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