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
0f532fd3
Commit
0f532fd3
authored
Feb 19, 2015
by
Himangi Saraogi
Committed by
Diego Biurrun
Feb 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rv40: Return more meaningful error codes
Signed-off-by:
Diego Biurrun
<
diego@biurrun.de
>
parent
d617e77c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
rv40.c
libavcodec/rv40.c
+5
-4
No files found.
libavcodec/rv40.c
View file @
0f532fd3
...
...
@@ -130,22 +130,23 @@ static int rv40_parse_slice_header(RV34DecContext *r, GetBitContext *gb, SliceIn
int
mb_bits
;
int
w
=
r
->
s
.
width
,
h
=
r
->
s
.
height
;
int
mb_size
;
int
ret
;
memset
(
si
,
0
,
sizeof
(
SliceInfo
));
if
(
get_bits1
(
gb
))
return
-
1
;
return
AVERROR_INVALIDDATA
;
si
->
type
=
get_bits
(
gb
,
2
);
if
(
si
->
type
==
1
)
si
->
type
=
0
;
si
->
quant
=
get_bits
(
gb
,
5
);
if
(
get_bits
(
gb
,
2
))
return
-
1
;
return
AVERROR_INVALIDDATA
;
si
->
vlc_set
=
get_bits
(
gb
,
2
);
skip_bits1
(
gb
);
si
->
pts
=
get_bits
(
gb
,
13
);
if
(
!
si
->
type
||
!
get_bits1
(
gb
))
rv40_parse_picture_size
(
gb
,
&
w
,
&
h
);
if
(
av_image_check_size
(
w
,
h
,
0
,
r
->
s
.
avctx
)
<
0
)
return
-
1
;
if
((
ret
=
av_image_check_size
(
w
,
h
,
0
,
r
->
s
.
avctx
)
)
<
0
)
return
ret
;
si
->
width
=
w
;
si
->
height
=
h
;
mb_size
=
((
w
+
15
)
>>
4
)
*
((
h
+
15
)
>>
4
);
...
...
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