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
1560c329
Commit
1560c329
authored
Nov 30, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iff: fix some incorrect interpretations of invalid files
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
50b5c229
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
iff.c
libavformat/iff.c
+4
-3
No files found.
libavformat/iff.c
View file @
1560c329
...
...
@@ -167,6 +167,10 @@ static int iff_read_header(AVFormatContext *s)
avio_skip
(
pb
,
8
);
// codec_tag used by ByteRun1 decoder to distinguish progressive (PBM) and interlaced (ILBM) content
st
->
codec
->
codec_tag
=
avio_rl32
(
pb
);
iff
->
bitmap_compression
=
-
1
;
iff
->
svx8_compression
=
-
1
;
iff
->
maud_bits
=
-
1
;
iff
->
maud_compression
=
-
1
;
while
(
!
url_feof
(
pb
))
{
uint64_t
orig_pos
;
...
...
@@ -193,8 +197,6 @@ static int iff_read_header(AVFormatContext *s)
case
ID_MHDR
:
st
->
codec
->
codec_type
=
AVMEDIA_TYPE_AUDIO
;
iff
->
maud_bits
=
-
1
;
iff
->
maud_compression
=
-
1
;
if
(
data_size
<
32
)
return
AVERROR_INVALIDDATA
;
avio_skip
(
pb
,
4
);
...
...
@@ -250,7 +252,6 @@ static int iff_read_header(AVFormatContext *s)
break
;
case
ID_BMHD
:
iff
->
bitmap_compression
=
-
1
;
st
->
codec
->
codec_type
=
AVMEDIA_TYPE_VIDEO
;
if
(
data_size
<=
8
)
return
AVERROR_INVALIDDATA
;
...
...
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