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
942217b1
Commit
942217b1
authored
Apr 16, 2018
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dsicinvideo: Propagate errors from cin_decode_rle()
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
9d5a4fcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
dsicinvideo.c
libavcodec/dsicinvideo.c
+12
-4
No files found.
libavcodec/dsicinvideo.c
View file @
942217b1
...
...
@@ -226,27 +226,35 @@ static int cinvideo_decode_frame(AVCodecContext *avctx,
* surface.width = surface.pitch */
switch
(
bitmap_frame_type
)
{
case
9
:
cin_decode_rle
(
buf
,
bitmap_frame_size
,
res
=
cin_decode_rle
(
buf
,
bitmap_frame_size
,
cin
->
bitmap_table
[
CIN_CUR_BMP
],
cin
->
bitmap_size
);
if
(
res
<
0
)
return
res
;
break
;
case
34
:
cin_decode_rle
(
buf
,
bitmap_frame_size
,
res
=
cin_decode_rle
(
buf
,
bitmap_frame_size
,
cin
->
bitmap_table
[
CIN_CUR_BMP
],
cin
->
bitmap_size
);
if
(
res
<
0
)
return
res
;
cin_apply_delta_data
(
cin
->
bitmap_table
[
CIN_PRE_BMP
],
cin
->
bitmap_table
[
CIN_CUR_BMP
],
cin
->
bitmap_size
);
break
;
case
35
:
bitmap_frame_size
=
cin_decode_huffman
(
buf
,
bitmap_frame_size
,
cin
->
bitmap_table
[
CIN_INT_BMP
],
cin
->
bitmap_size
);
cin_decode_rle
(
cin
->
bitmap_table
[
CIN_INT_BMP
],
bitmap_frame_size
,
res
=
cin_decode_rle
(
cin
->
bitmap_table
[
CIN_INT_BMP
],
bitmap_frame_size
,
cin
->
bitmap_table
[
CIN_CUR_BMP
],
cin
->
bitmap_size
);
if
(
res
<
0
)
return
res
;
break
;
case
36
:
bitmap_frame_size
=
cin_decode_huffman
(
buf
,
bitmap_frame_size
,
cin
->
bitmap_table
[
CIN_INT_BMP
],
cin
->
bitmap_size
);
cin_decode_rle
(
cin
->
bitmap_table
[
CIN_INT_BMP
],
bitmap_frame_size
,
res
=
cin_decode_rle
(
cin
->
bitmap_table
[
CIN_INT_BMP
],
bitmap_frame_size
,
cin
->
bitmap_table
[
CIN_CUR_BMP
],
cin
->
bitmap_size
);
if
(
res
<
0
)
return
res
;
cin_apply_delta_data
(
cin
->
bitmap_table
[
CIN_PRE_BMP
],
cin
->
bitmap_table
[
CIN_CUR_BMP
],
cin
->
bitmap_size
);
break
;
...
...
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