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
958e3119
Commit
958e3119
authored
Jan 04, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/rv10: cleanup rpr handling
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
adc09a35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
rv10.c
libavcodec/rv10.c
+5
-5
No files found.
libavcodec/rv10.c
View file @
958e3119
...
...
@@ -300,7 +300,7 @@ static int rv20_decode_picture_header(RVDecContext *rv)
{
MpegEncContext
*
s
=
&
rv
->
m
;
int
seq
,
mb_pos
,
i
,
ret
;
int
rpr_
bits
;
int
rpr_
max
;
i
=
get_bits
(
&
s
->
gb
,
2
);
switch
(
i
)
{
...
...
@@ -341,10 +341,10 @@ static int rv20_decode_picture_header(RVDecContext *rv)
else
seq
=
get_bits
(
&
s
->
gb
,
13
)
<<
2
;
rpr_
bits
=
s
->
avctx
->
extradata
[
1
]
&
7
;
if
(
rpr_
bits
)
{
rpr_
max
=
s
->
avctx
->
extradata
[
1
]
&
7
;
if
(
rpr_
max
)
{
int
f
,
new_w
,
new_h
;
rpr_bits
=
FFMIN
((
rpr_bits
>>
1
)
+
1
,
3
)
;
int
rpr_bits
=
av_log2
(
rpr_max
)
+
1
;
f
=
get_bits
(
&
s
->
gb
,
rpr_bits
);
...
...
@@ -387,7 +387,7 @@ static int rv20_decode_picture_header(RVDecContext *rv)
}
if
(
s
->
avctx
->
debug
&
FF_DEBUG_PICT_INFO
)
{
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"F %d/%d
\n
"
,
f
,
rpr_bits
);
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"F %d/%d
/%d
\n
"
,
f
,
rpr_bits
,
rpr_max
);
}
}
if
(
av_image_check_size
(
s
->
width
,
s
->
height
,
0
,
s
->
avctx
)
<
0
)
...
...
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