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
236116cb
Commit
236116cb
authored
Jan 21, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get rid of a few idiotic asserts()
Originally committed as revision 7632 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
b586d9ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
asf.c
libavformat/asf.c
+5
-7
No files found.
libavformat/asf.c
View file @
236116cb
...
...
@@ -578,17 +578,14 @@ static int asf_read_packet(AVFormatContext *s, AVPacket *pkt)
DO_2BITS
(
asf
->
packet_property
>>
2
,
asf
->
packet_frag_offset
,
0
);
DO_2BITS
(
asf
->
packet_property
,
asf
->
packet_replic_size
,
0
);
//printf("key:%d stream:%d seq:%d offset:%d replic_size:%d\n", asf->packet_key_frame, asf->stream_index, asf->packet_seq, //asf->packet_frag_offset, asf->packet_replic_size);
if
(
asf
->
packet_replic_size
>
1
)
{
assert
(
asf
->
packet_replic_size
>=
8
);
// it should be always at least 8 bytes - FIXME validate
if
(
asf
->
packet_replic_size
>=
8
)
{
asf
->
packet_obj_size
=
get_le32
(
pb
);
if
(
asf
->
packet_obj_size
>=
(
1
<<
24
)
||
asf
->
packet_obj_size
<=
0
){
av_log
(
s
,
AV_LOG_ERROR
,
"packet_obj_size invalid
\n
"
);
continue
;
}
asf
->
packet_frag_timestamp
=
get_le32
(
pb
);
// timestamp
if
(
asf
->
packet_replic_size
>
8
)
url_fskip
(
pb
,
asf
->
packet_replic_size
-
8
);
url_fskip
(
pb
,
asf
->
packet_replic_size
-
8
);
rsize
+=
asf
->
packet_replic_size
;
// FIXME - check validity
}
else
if
(
asf
->
packet_replic_size
==
1
){
// multipacket - frag_offset is begining timestamp
...
...
@@ -598,8 +595,9 @@ static int asf_read_packet(AVFormatContext *s, AVPacket *pkt)
asf
->
packet_time_delta
=
get_byte
(
pb
);
rsize
++
;
}
else
{
assert
(
asf
->
packet_replic_size
==
0
);
}
else
if
(
asf
->
packet_replic_size
!=
0
){
av_log
(
s
,
AV_LOG_ERROR
,
"unexpected packet_replic_size of %d
\n
"
,
asf
->
packet_replic_size
);
continue
;
}
if
(
asf
->
packet_flags
&
0x01
)
{
DO_2BITS
(
asf
->
packet_segsizetype
>>
6
,
asf
->
packet_frag_size
,
0
);
// 0 is illegal
...
...
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