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
cf4dbe9a
Commit
cf4dbe9a
authored
Apr 29, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/xwma: improve error codes
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c31ad87b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
xwma.c
libavformat/xwma.c
+4
-4
No files found.
libavformat/xwma.c
View file @
cf4dbe9a
...
...
@@ -131,7 +131,7 @@ static int xwma_read_header(AVFormatContext *s)
/* parse the remaining RIFF chunks */
for
(;;)
{
if
(
pb
->
eof_reached
)
return
-
1
;
return
AVERROR_EOF
;
/* read next chunk tag */
tag
=
avio_rl32
(
pb
);
size
=
avio_rl32
(
pb
);
...
...
@@ -152,7 +152,7 @@ static int xwma_read_header(AVFormatContext *s)
/* Error out if there is more than one dpds chunk. */
if
(
dpds_table
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"two dpds chunks present
\n
"
);
return
-
1
;
return
AVERROR_INVALIDDATA
;
}
/* Compute the number of entries in the dpds chunk. */
...
...
@@ -164,7 +164,7 @@ static int xwma_read_header(AVFormatContext *s)
if
(
dpds_table_size
==
0
||
dpds_table_size
>=
INT_MAX
/
4
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"dpds chunk size %"
PRId64
" invalid
\n
"
,
size
);
return
-
1
;
return
AVERROR_INVALIDDATA
;
}
/* Allocate some temporary storage to keep the dpds data around.
...
...
@@ -185,7 +185,7 @@ static int xwma_read_header(AVFormatContext *s)
/* Determine overall data length */
if
(
size
<
0
)
return
-
1
;
return
AVERROR_INVALIDDATA
;
if
(
!
size
)
{
xwma
->
data_end
=
INT64_MAX
;
}
else
...
...
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