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
29962fea
Commit
29962fea
authored
Jan 14, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
header parser fix
Originally committed as revision 2707 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1305a9d5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
asf.c
libavformat/asf.c
+11
-3
No files found.
libavformat/asf.c
View file @
29962fea
...
...
@@ -1062,12 +1062,15 @@ static int asf_get_packet(AVFormatContext *s)
ASFContext
*
asf
=
s
->
priv_data
;
ByteIOContext
*
pb
=
&
s
->
pb
;
uint32_t
packet_length
,
padsize
;
int
rsize
=
11
;
int
c
=
get_byte
(
pb
);
int
rsize
=
9
;
int
c
;
assert
((
url_ftell
(
&
s
->
pb
)
-
s
->
data_offset
)
%
asf
->
packet_size
==
0
);
c
=
get_byte
(
pb
);
if
(
c
!=
0x82
)
{
if
(
!
url_feof
(
pb
))
printf
(
"ff asf bad header %x at:%lld
\n
"
,
c
,
url_ftell
(
pb
));
return
-
EIO
;
}
if
((
c
&
0x0f
)
==
2
)
{
// always true for now
if
(
get_le16
(
pb
)
!=
0
)
{
...
...
@@ -1075,6 +1078,11 @@ static int asf_get_packet(AVFormatContext *s)
printf
(
"ff asf bad non zero
\n
"
);
return
-
EIO
;
}
rsize
+=
2
;
/* }else{
if (!url_feof(pb))
printf("ff asf bad header %x at:%lld\n", c, url_ftell(pb));
return -EIO;*/
}
asf
->
packet_flags
=
get_byte
(
pb
);
...
...
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