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
0078430e
Commit
0078430e
authored
Aug 27, 2011
by
Joseph Wecker
Committed by
Michael Niedermayer
Sep 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flvdec: A little bit of cleanup
parent
4ee53d7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
flvdec.c
libavformat/flvdec.c
+4
-5
No files found.
libavformat/flvdec.c
View file @
0078430e
...
...
@@ -414,17 +414,16 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
if
((
flags
&
0xf0
)
==
0x50
)
/* video info / command frame */
goto
skip
;
}
else
if
(
type
==
FLV_TAG_TYPE_META
)
{
if
(
size
>
13
+
1
+
4
&&
dts
==
0
)
{
// Header-type metadata stuff
if
(
size
>
13
+
1
+
4
&&
dts
==
0
)
{
// Header-type metadata stuff
flv_read_metabody
(
s
,
next
);
goto
skip
;
}
else
if
(
dts
!=
0
)
{
// Script-data "special" metadata frames - don't skip
}
else
if
(
dts
!=
0
)
{
// Script-data "special" metadata frames - don't skip
stream_type
=
FLV_STREAM_TYPE_DATA
;
}
else
{
goto
skip
;
}
}
else
{
av_log
(
s
,
AV_LOG_DEBUG
,
"skipping flv packet: type %d, size %d, flags %d
\n
"
,
type
,
size
,
flags
);
skip
:
avio_seek
(
s
->
pb
,
next
,
SEEK_SET
);
continue
;
...
...
@@ -541,7 +540,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
pkt
->
stream_index
=
st
->
index
;
if
(
stream_type
==
FLV_STREAM_TYPE_AUDIO
||
(
flags
&
FLV_VIDEO_FRAMETYPE_MASK
)
==
FLV_FRAME_KEY
||
(
(
flags
&
FLV_VIDEO_FRAMETYPE_MASK
)
==
FLV_FRAME_KEY
)
||
stream_type
==
FLV_STREAM_TYPE_DATA
)
pkt
->
flags
|=
AV_PKT_FLAG_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