Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
450
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
09b523a4
Commit
09b523a4
authored
3 years ago
by
François Cartegnie
Committed by
Hugo Beauzée-Luyssen
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
demux: ogg: add lookup limit for chained streams
parent
66e6c1e3
No related branches found
Branches containing commit
No related tags found
1 merge request
!1275
demux: ogg: add lookup limit for chained streams
Pipeline
#183416
passed with stage
Stage:
in 23 minutes and 39 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/demux/oggseek.c
+4
-0
4 additions, 0 deletions
modules/demux/oggseek.c
modules/demux/oggseek.h
+1
-0
1 addition, 0 deletions
modules/demux/oggseek.h
with
5 additions
and
0 deletions
modules/demux/oggseek.c
+
4
−
0
View file @
09b523a4
...
...
@@ -383,6 +383,10 @@ static int64_t find_first_page_granule( demux_t *p_demux,
seek_byte
(
p_demux
,
p_sys
->
i_input_position
);
ogg_stream_reset
(
&
p_stream
->
os
);
/* prevent reading the whole file if stream is gone */
if
(
i_pos2
>
p_sys
->
i_input_position
+
OGGSEEK_SERIALNO_MAX_LOOKUP_BYTES
)
i_pos2
=
p_sys
->
i_input_position
+
OGGSEEK_SERIALNO_MAX_LOOKUP_BYTES
;
while
(
1
)
{
...
...
This diff is collapsed.
Click to expand it.
modules/demux/oggseek.h
+
1
−
0
View file @
09b523a4
...
...
@@ -38,6 +38,7 @@
#define PAGE_HEADER_BYTES 27
#define OGGSEEK_BYTES_TO_READ 8500
#define OGGSEEK_SERIALNO_MAX_LOOKUP_BYTES (OGGSEEK_BYTES_TO_READ * 25)
/* index entries are structured as follows:
* - for theora, highest granulepos -> pagepos (bytes) where keyframe begins
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment