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
c44417e1
Commit
c44417e1
authored
Mar 28, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indeo4: Dont leave tables in random state on errors.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a74d7218
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
indeo4.c
libavcodec/indeo4.c
+4
-2
No files found.
libavcodec/indeo4.c
View file @
c44417e1
...
...
@@ -608,6 +608,7 @@ static int decode_band(IVI4DecContext *ctx, int plane_num,
{
int
result
,
i
,
t
,
pos
,
idx1
,
idx2
;
IVITile
*
tile
;
int
ret
=
0
;
band
->
buf
=
band
->
bufs
[
ctx
->
dst_buf
];
band
->
ref_buf
=
band
->
bufs
[
ctx
->
ref_buf
];
...
...
@@ -651,7 +652,8 @@ static int decode_band(IVI4DecContext *ctx, int plane_num,
tile
->
data_size
=
ff_ivi_dec_tile_data_size
(
&
ctx
->
gb
);
if
(
!
tile
->
data_size
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Tile data size is zero!
\n
"
);
return
AVERROR_INVALIDDATA
;
ret
=
AVERROR_INVALIDDATA
;
break
;
}
result
=
decode_mb_info
(
ctx
,
band
,
tile
,
avctx
);
...
...
@@ -693,7 +695,7 @@ static int decode_band(IVI4DecContext *ctx, int plane_num,
align_get_bits
(
&
ctx
->
gb
);
return
0
;
return
ret
;
}
...
...
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