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
629b2ed0
Commit
629b2ed0
authored
Oct 20, 2014
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flvdec: make sure to check create_stream and report the same error
CC: libav-stable@libav.org Bug-Id: CID 732242
parent
f22aa6b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
flvdec.c
libavformat/flvdec.c
+5
-2
No files found.
libavformat/flvdec.c
View file @
629b2ed0
...
...
@@ -717,7 +717,7 @@ static int flv_data_packet(AVFormatContext *s, AVPacket *pkt,
if
(
i
==
s
->
nb_streams
)
{
st
=
create_stream
(
s
,
AVMEDIA_TYPE_DATA
);
if
(
!
st
)
return
AVERROR
_INVALIDDATA
;
return
AVERROR
(
ENOMEM
)
;
st
->
codec
->
codec_id
=
AV_CODEC_ID_TEXT
;
}
...
...
@@ -817,9 +817,12 @@ skip:
break
;
}
}
if
(
i
==
s
->
nb_streams
)
if
(
i
==
s
->
nb_streams
)
{
st
=
create_stream
(
s
,
is_audio
?
AVMEDIA_TYPE_AUDIO
:
AVMEDIA_TYPE_VIDEO
);
if
(
!
st
)
return
AVERROR
(
ENOMEM
);
}
av_dlog
(
s
,
"%d %X %d
\n
"
,
is_audio
,
flags
,
st
->
discard
);
if
((
flags
&
FLV_VIDEO_FRAMETYPE_MASK
)
==
FLV_FRAME_KEY
||
...
...
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