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
f700641d
Commit
f700641d
authored
Mar 02, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/theora.c: sanity check for invalid theora header.
parent
007c8a15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
modules/codec/theora.c
modules/codec/theora.c
+15
-0
No files found.
modules/codec/theora.c
View file @
f700641d
...
...
@@ -315,6 +315,21 @@ static int ProcessHeaders( decoder_t *p_dec )
p_sys
->
ti
.
frame_width
,
p_sys
->
ti
.
frame_height
,
p_sys
->
ti
.
offset_x
,
p_sys
->
ti
.
offset_y
);
/* Sanity check that seems necessary for some corrupted files */
if
(
p_sys
->
ti
.
width
<
p_sys
->
ti
.
frame_width
||
p_sys
->
ti
.
height
<
p_sys
->
ti
.
frame_height
)
{
msg_Warn
(
p_dec
,
"trying to correct invalid theora header "
"(frame size (%dx%d) is smaller than frame content (%d,%d))"
,
p_sys
->
ti
.
width
,
p_sys
->
ti
.
height
,
p_sys
->
ti
.
frame_width
,
p_sys
->
ti
.
frame_height
);
if
(
p_sys
->
ti
.
width
<
p_sys
->
ti
.
frame_width
)
p_sys
->
ti
.
width
=
p_sys
->
ti
.
frame_width
;
if
(
p_sys
->
ti
.
height
<
p_sys
->
ti
.
frame_height
)
p_sys
->
ti
.
height
=
p_sys
->
ti
.
frame_height
;
}
/* The next packet in order is the comments header */
oggpacket
.
b_o_s
=
0
;
oggpacket
.
bytes
=
*
(
p_extra
++
)
<<
8
;
...
...
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