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
cdada4f6
Commit
cdada4f6
authored
May 02, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmdav: return meaningful error codes
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
4d4ec18b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vmdav.c
libavcodec/vmdav.c
+2
-2
No files found.
libavcodec/vmdav.c
View file @
cdada4f6
...
@@ -362,14 +362,14 @@ static av_cold int vmdvideo_decode_init(AVCodecContext *avctx)
...
@@ -362,14 +362,14 @@ static av_cold int vmdvideo_decode_init(AVCodecContext *avctx)
if
(
s
->
avctx
->
extradata_size
!=
VMD_HEADER_SIZE
)
{
if
(
s
->
avctx
->
extradata_size
!=
VMD_HEADER_SIZE
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"expected extradata size of %d
\n
"
,
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"expected extradata size of %d
\n
"
,
VMD_HEADER_SIZE
);
VMD_HEADER_SIZE
);
return
-
1
;
return
AVERROR_INVALIDDATA
;
}
}
vmd_header
=
(
unsigned
char
*
)
avctx
->
extradata
;
vmd_header
=
(
unsigned
char
*
)
avctx
->
extradata
;
s
->
unpack_buffer_size
=
AV_RL32
(
&
vmd_header
[
800
]);
s
->
unpack_buffer_size
=
AV_RL32
(
&
vmd_header
[
800
]);
s
->
unpack_buffer
=
av_malloc
(
s
->
unpack_buffer_size
);
s
->
unpack_buffer
=
av_malloc
(
s
->
unpack_buffer_size
);
if
(
!
s
->
unpack_buffer
)
if
(
!
s
->
unpack_buffer
)
return
-
1
;
return
AVERROR
(
ENOMEM
)
;
/* load up the initial palette */
/* load up the initial palette */
raw_palette
=
&
vmd_header
[
28
];
raw_palette
=
&
vmd_header
[
28
];
...
...
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