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
d2213b64
Commit
d2213b64
authored
Sep 17, 2011
by
Laurent Aimar
Committed by
Martin Storsjö
Sep 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rv34: Fix buffer size used for MC of B frames after a resolution change
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
d0f6ab02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rv34.c
libavcodec/rv34.c
+2
-2
No files found.
libavcodec/rv34.c
View file @
d2213b64
...
...
@@ -1303,15 +1303,15 @@ static int rv34_decode_slice(RV34DecContext *r, int end, const uint8_t* buf, int
r
->
cbp_luma
=
av_realloc
(
r
->
cbp_luma
,
r
->
s
.
mb_stride
*
r
->
s
.
mb_height
*
sizeof
(
*
r
->
cbp_luma
));
r
->
cbp_chroma
=
av_realloc
(
r
->
cbp_chroma
,
r
->
s
.
mb_stride
*
r
->
s
.
mb_height
*
sizeof
(
*
r
->
cbp_chroma
));
r
->
deblock_coefs
=
av_realloc
(
r
->
deblock_coefs
,
r
->
s
.
mb_stride
*
r
->
s
.
mb_height
*
sizeof
(
*
r
->
deblock_coefs
));
av_freep
(
&
r
->
tmp_b_block_base
);
}
s
->
pict_type
=
r
->
si
.
type
?
r
->
si
.
type
:
AV_PICTURE_TYPE_I
;
if
(
MPV_frame_start
(
s
,
s
->
avctx
)
<
0
)
return
-
1
;
ff_er_frame_start
(
s
);
if
(
!
r
->
tmp_b_block_base
||
s
->
width
!=
r
->
si
.
width
||
s
->
height
!=
r
->
si
.
height
)
{
if
(
!
r
->
tmp_b_block_base
)
{
int
i
;
av_free
(
r
->
tmp_b_block_base
);
//realloc() doesn't guarantee alignment
r
->
tmp_b_block_base
=
av_malloc
(
s
->
linesize
*
48
);
for
(
i
=
0
;
i
<
2
;
i
++
)
r
->
tmp_b_block_y
[
i
]
=
r
->
tmp_b_block_base
+
i
*
16
*
s
->
linesize
;
...
...
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