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
763e7144
Commit
763e7144
authored
Jun 02, 2014
by
Carl Eugen Hoyos
Committed by
Michael Niedermayer
Jun 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not limit blocksize when reading PCM from aiff.
Fixes ticket #3695.
parent
c17973f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
aiffdec.c
libavformat/aiffdec.c
+8
-2
No files found.
libavformat/aiffdec.c
View file @
763e7144
...
...
@@ -344,10 +344,16 @@ static int aiff_read_packet(AVFormatContext *s,
return
AVERROR_EOF
;
/* Now for that packet */
if
(
st
->
codec
->
block_align
>=
17
)
// GSM, QCLP, IMA4
switch
(
st
->
codec
->
codec_id
)
{
case
AV_CODEC_ID_ADPCM_IMA_QT
:
case
AV_CODEC_ID_GSM
:
case
AV_CODEC_ID_QDM2
:
case
AV_CODEC_ID_QCELP
:
size
=
st
->
codec
->
block_align
;
else
break
;
default:
size
=
(
MAX_SIZE
/
st
->
codec
->
block_align
)
*
st
->
codec
->
block_align
;
}
size
=
FFMIN
(
max_size
,
size
);
res
=
av_get_packet
(
s
->
pb
,
pkt
,
size
);
if
(
res
<
0
)
...
...
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