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
28fc31d7
Commit
28fc31d7
authored
Dec 11, 2014
by
Gabor Nagy
Committed by
Michael Niedermayer
Dec 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/avidec: Do not fail for crazy start times
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
27dfe54e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
avidec.c
libavformat/avidec.c
+1
-1
No files found.
libavformat/avidec.c
View file @
28fc31d7
...
...
@@ -659,7 +659,7 @@ static int avi_read_header(AVFormatContext *s)
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
->
cum_len
=
0
;
}
ast
->
sample_size
=
avio_rl32
(
pb
);
/* sample ssize */
ast
->
cum_len
*=
FFMAX
(
1
,
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