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
d6ea59b8
Commit
d6ea59b8
authored
Oct 17, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tta: datalen is unsigned integer per reference library
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
364c60bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
tta.c
libavformat/tta.c
+5
-4
No files found.
libavformat/tta.c
View file @
d6ea59b8
...
...
@@ -44,8 +44,9 @@ static int tta_read_header(AVFormatContext *s)
{
TTAContext
*
c
=
s
->
priv_data
;
AVStream
*
st
;
int
i
,
channels
,
bps
,
samplerate
,
datalen
;
int
i
,
channels
,
bps
,
samplerate
;
uint64_t
framepos
,
start_offset
;
uint32_t
datalen
;
if
(
!
av_dict_get
(
s
->
metadata
,
""
,
NULL
,
AV_DICT_IGNORE_SUFFIX
))
ff_id3v1_read
(
s
);
...
...
@@ -64,9 +65,9 @@ static int tta_read_header(AVFormatContext *s)
}
datalen
=
avio_rl32
(
s
->
pb
);
if
(
datalen
<
0
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"
nonsense
datalen
\n
"
);
return
-
1
;
if
(
!
datalen
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"
invalid
datalen
\n
"
);
return
AVERROR_INVALIDDATA
;
}
avio_skip
(
s
->
pb
,
4
);
// header crc
...
...
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