Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a63a86fd
Commit
a63a86fd
authored
Jan 10, 2012
by
Oana Stratulat
Committed by
Michael Niedermayer
Jan 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes issue 890: OOM with zmbv file
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
44e19145
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
avidec.c
libavformat/avidec.c
+4
-0
No files found.
libavformat/avidec.c
View file @
a63a86fd
...
...
@@ -544,6 +544,10 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
st
->
start_time
=
0
;
avio_rl32
(
pb
);
/* buffer size */
avio_rl32
(
pb
);
/* quality */
if
(
ast
->
cum_len
*
ast
->
scale
/
ast
->
rate
>
3600
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"crazy start time, iam scared, giving up
\n
"
);
return
AVERROR_INVALIDDATA
;
}
ast
->
sample_size
=
avio_rl32
(
pb
);
/* sample ssize */
ast
->
cum_len
*=
FFMAX
(
1
,
ast
->
sample_size
);
// av_log(s, AV_LOG_DEBUG, "%d %d %d %d\n", ast->rate, ast->scale, ast->start, ast->sample_size);
...
...
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