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
25f5d67a
Commit
25f5d67a
authored
Oct 10, 2019
by
Steven Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/cinedec: check av_strdup() return value
Signed-off-by:
Steven Liu
<
lq@chinaffmpeg.org
>
parent
0700e724
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cinedec.c
libavformat/cinedec.c
+4
-0
No files found.
libavformat/cinedec.c
View file @
25f5d67a
...
@@ -168,6 +168,10 @@ static int cine_read_header(AVFormatContext *avctx)
...
@@ -168,6 +168,10 @@ static int cine_read_header(AVFormatContext *avctx)
avio_skip
(
pb
,
616
);
// Binning .. bFlipH
avio_skip
(
pb
,
616
);
// Binning .. bFlipH
if
(
!
avio_rl32
(
pb
)
^
vflip
)
{
if
(
!
avio_rl32
(
pb
)
^
vflip
)
{
st
->
codecpar
->
extradata
=
av_strdup
(
"BottomUp"
);
st
->
codecpar
->
extradata
=
av_strdup
(
"BottomUp"
);
if
(
!
st
->
codecpar
->
extradata
)
{
st
->
codecpar
->
extradata_size
=
0
;
return
AVERROR
(
ENOMEM
);
}
st
->
codecpar
->
extradata_size
=
9
;
st
->
codecpar
->
extradata_size
=
9
;
}
}
...
...
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