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
a1f1c15f
Commit
a1f1c15f
authored
Mar 07, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ogg: keep searching for 1st page if incomplete
parent
a351db66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/demux/oggseek.c
modules/demux/oggseek.c
+10
-1
No files found.
modules/demux/oggseek.c
View file @
a1f1c15f
...
...
@@ -510,6 +510,13 @@ static int64_t find_first_page_granule( demux_t *p_demux,
return
p_sys
->
i_input_position
;
}
if
(
ogg_page_granulepos
(
&
p_sys
->
current_page
)
<=
0
)
{
p_sys
->
i_input_position
+=
i_result
;
i_bytes_to_read
+=
OGGSEEK_BYTES_TO_READ
;
continue
;
}
// found a page
if
(
ogg_stream_pagein
(
&
p_stream
->
os
,
&
p_sys
->
current_page
)
!=
0
)
{
...
...
@@ -772,6 +779,8 @@ int64_t Oggseek_GranuleToAbsTimestamp( logical_stream_t *p_stream,
int64_t
i_granule
,
bool
b_presentation
)
{
int64_t
i_timestamp
=
-
1
;
if
(
i_granule
<
0
)
return
-
1
;
if
(
p_stream
->
b_oggds
)
{
...
...
@@ -897,7 +906,7 @@ static int64_t OggBisectSearchByTime( demux_t *p_demux, logical_stream_t *p_stre
current
.
i_timestamp
=
Oggseek_GranuleToAbsTimestamp
(
p_stream
,
current
.
i_granule
,
false
);
if
(
current
.
i_timestamp
==
-
1
)
if
(
current
.
i_timestamp
==
-
1
&&
current
.
i_granule
>
0
)
{
msg_Err
(
p_demux
,
"Unmatched granule. New codec ?"
);
return
-
1
;
...
...
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