Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
096a8eff
Commit
096a8eff
authored
Oct 18, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: check that the codec is supported by extract_extradata
Avoids superfluous error message spam after
8e2ea691
parent
788544ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
utils.c
libavformat/utils.c
+10
-0
No files found.
libavformat/utils.c
View file @
096a8eff
...
...
@@ -2099,6 +2099,16 @@ static int extract_extradata_init(AVStream *st)
if
(
!
f
)
goto
finish
;
/* check that the codec id is supported */
if
(
f
->
codec_ids
)
{
const
enum
AVCodecID
*
ids
;
for
(
ids
=
f
->
codec_ids
;
*
ids
!=
AV_CODEC_ID_NONE
;
ids
++
)
if
(
*
ids
==
st
->
codecpar
->
codec_id
)
break
;
if
(
*
ids
==
AV_CODEC_ID_NONE
)
goto
finish
;
}
i
->
extract_extradata
.
pkt
=
av_packet_alloc
();
if
(
!
i
->
extract_extradata
.
pkt
)
return
AVERROR
(
ENOMEM
);
...
...
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