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
0ffd77b9
Commit
0ffd77b9
authored
Apr 19, 2005
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing demuxing of DV5700.asf
Originally committed as revision 4138 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e91f4bf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
asf.c
libavformat/asf.c
+4
-2
No files found.
libavformat/asf.c
View file @
0ffd77b9
...
...
@@ -182,7 +182,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
asf
->
packet_size
=
asf
->
hdr
.
max_pktsize
;
asf
->
nb_packets
=
asf
->
hdr
.
packets_count
;
}
else
if
(
!
memcmp
(
&
g
,
&
stream_header
,
sizeof
(
GUID
)))
{
int
type
,
total_size
,
type_specific_size
;
int
type
,
total_size
,
type_specific_size
,
sizeX
;
unsigned
int
tag1
;
int64_t
pos1
,
pos2
;
...
...
@@ -264,7 +264,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
get_le32
(
pb
);
get_byte
(
pb
);
size
=
get_le16
(
pb
);
/* size */
get_le32
(
pb
);
/* size */
sizeX
=
get_le32
(
pb
);
/* size */
st
->
codec
.
width
=
get_le32
(
pb
);
st
->
codec
.
height
=
get_le32
(
pb
);
/* not available for asf */
...
...
@@ -272,6 +272,8 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
st
->
codec
.
bits_per_sample
=
get_le16
(
pb
);
/* depth */
tag1
=
get_le32
(
pb
);
url_fskip
(
pb
,
20
);
// av_log(NULL, AV_LOG_DEBUG, "size:%d tsize:%d sizeX:%d\n", size, total_size, sizeX);
size
=
sizeX
;
if
(
size
>
40
)
{
st
->
codec
.
extradata_size
=
size
-
40
;
st
->
codec
.
extradata
=
av_mallocz
(
st
->
codec
.
extradata_size
+
FF_INPUT_BUFFER_PADDING_SIZE
);
...
...
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