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
d768f8f5
Commit
d768f8f5
authored
Apr 02, 2015
by
Himangi Saraogi
Committed by
Michael Niedermayer
Apr 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: Avoid null pointer dereferences
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
80be7daa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ffmpeg.c
ffmpeg.c
+7
-2
No files found.
ffmpeg.c
View file @
d768f8f5
...
...
@@ -3171,17 +3171,22 @@ static int transcode_init(void)
const
char
*
in_codec_name
=
"?"
;
const
char
*
encoder_name
=
"?"
;
const
char
*
out_codec_name
=
"?"
;
const
AVCodecDescriptor
*
desc
;
if
(
in_codec
)
{
decoder_name
=
in_codec
->
name
;
in_codec_name
=
avcodec_descriptor_get
(
in_codec
->
id
)
->
name
;
desc
=
avcodec_descriptor_get
(
in_codec
->
id
);
if
(
desc
)
in_codec_name
=
desc
->
name
;
if
(
!
strcmp
(
decoder_name
,
in_codec_name
))
decoder_name
=
"native"
;
}
if
(
out_codec
)
{
encoder_name
=
out_codec
->
name
;
out_codec_name
=
avcodec_descriptor_get
(
out_codec
->
id
)
->
name
;
desc
=
avcodec_descriptor_get
(
out_codec
->
id
);
if
(
desc
)
out_codec_name
=
desc
->
name
;
if
(
!
strcmp
(
encoder_name
,
out_codec_name
))
encoder_name
=
"native"
;
}
...
...
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