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
6298eb81
Commit
6298eb81
authored
Aug 29, 2008
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify size handling code
Originally committed as revision 15040 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
53440c62
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
flvdec.c
libavformat/flvdec.c
+5
-3
No files found.
libavformat/flvdec.c
View file @
6298eb81
...
...
@@ -322,11 +322,13 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
if
(
type
==
FLV_TAG_TYPE_AUDIO
)
{
is_audio
=
1
;
flags
=
get_byte
(
s
->
pb
);
size
--
;
}
else
if
(
type
==
FLV_TAG_TYPE_VIDEO
)
{
is_audio
=
0
;
flags
=
get_byte
(
s
->
pb
);
size
--
;
if
((
flags
&
0xf0
)
==
0x50
)
{
/* video info / command frame */
url_fskip
(
s
->
pb
,
size
-
1
);
url_fskip
(
s
->
pb
,
size
);
continue
;
}
}
else
{
...
...
@@ -400,13 +402,13 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
get_be24
(
s
->
pb
);
}
if
(
type
==
0
)
{
if
((
ret
=
flv_get_extradata
(
s
,
st
,
size
-
1
))
<
0
)
if
((
ret
=
flv_get_extradata
(
s
,
st
,
size
))
<
0
)
return
ret
;
goto
retry
;
}
}
ret
=
av_get_packet
(
s
->
pb
,
pkt
,
size
-
1
);
ret
=
av_get_packet
(
s
->
pb
,
pkt
,
size
);
if
(
ret
<=
0
)
{
return
AVERROR
(
EIO
);
}
...
...
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