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
f2ed006c
Commit
f2ed006c
authored
Jul 30, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpc8: return more meaningful error codes.
parent
263dbe9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mpc8.c
libavformat/mpc8.c
+3
-3
No files found.
libavformat/mpc8.c
View file @
f2ed006c
...
...
@@ -202,7 +202,7 @@ static int mpc8_read_header(AVFormatContext *s)
c
->
header_pos
=
avio_tell
(
pb
);
if
(
avio_rl32
(
pb
)
!=
TAG_MPCK
){
av_log
(
s
,
AV_LOG_ERROR
,
"Not a Musepack8 file
\n
"
);
return
-
1
;
return
AVERROR_INVALIDDATA
;
}
while
(
!
pb
->
eof_reached
){
...
...
@@ -214,14 +214,14 @@ static int mpc8_read_header(AVFormatContext *s)
}
if
(
tag
!=
TAG_STREAMHDR
){
av_log
(
s
,
AV_LOG_ERROR
,
"Stream header not found
\n
"
);
return
-
1
;
return
AVERROR_INVALIDDATA
;
}
pos
=
avio_tell
(
pb
);
avio_skip
(
pb
,
4
);
//CRC
c
->
ver
=
avio_r8
(
pb
);
if
(
c
->
ver
!=
8
){
av_log
(
s
,
AV_LOG_ERROR
,
"Unknown stream version %d
\n
"
,
c
->
ver
);
return
-
1
;
return
AVERROR_PATCHWELCOME
;
}
c
->
samples
=
ffio_read_varlen
(
pb
);
ffio_read_varlen
(
pb
);
//silence samples at the beginning
...
...
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