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
102f7d0e
Commit
102f7d0e
authored
Nov 27, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/rmenc: Check framerate before storing
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
5d7be07a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
rmenc.c
libavformat/rmenc.c
+6
-0
No files found.
libavformat/rmenc.c
View file @
102f7d0e
...
...
@@ -253,6 +253,12 @@ static int rv10_write_header(AVFormatContext *ctx,
ffio_wfourcc
(
s
,
"RV20"
);
avio_wb16
(
s
,
stream
->
par
->
width
);
avio_wb16
(
s
,
stream
->
par
->
height
);
if
(
stream
->
frame_rate
.
num
/
stream
->
frame_rate
.
den
>
65535
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Frame rate %d is too high
\n
"
,
stream
->
frame_rate
.
num
/
stream
->
frame_rate
.
den
);
return
AVERROR
(
EINVAL
);
}
avio_wb16
(
s
,
stream
->
frame_rate
.
num
/
stream
->
frame_rate
.
den
);
/* frames per seconds ? */
avio_wb32
(
s
,
0
);
/* unknown meaning */
avio_wb16
(
s
,
stream
->
frame_rate
.
num
/
stream
->
frame_rate
.
den
);
/* unknown meaning */
...
...
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