[FFmpeg-devel] [PATCH 1/2] avcodec/rv60: loosen fill_mv_skip_cand top right and bottom left criteria
Peter Ross
pross at xvid.org
Sun Nov 10 22:59:21 EET 2024
Fixes ticket #11293.
---
libavcodec/rv60dec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/rv60dec.c b/libavcodec/rv60dec.c
index 091018cc56..19cd0f2861 100644
--- a/libavcodec/rv60dec.c
+++ b/libavcodec/rv60dec.c
@@ -881,12 +881,12 @@ static void fill_mv_skip_cand(RV60Context * s, const CUContext * cu, unique_list
if (mvinfo_valid(mv))
unique_list_mvinfo_add(skip_cand, *mv);
}
- if (has_top_right_block(s, cu->xpos, cu->ypos, 0, 0, size)) {
+ if (cu->ypos > 0 && cu->xpos + size < s->awidth) {
const MVInfo * mv = &s->blk_info[cu->blk_pos - s->blk_stride + mv_size].mv;
if (mvinfo_valid(mv))
unique_list_mvinfo_add(skip_cand, *mv);
}
- if (has_left_down_block(s, cu->xpos, cu->ypos, 0, 0, size)) {
+ if (cu->xpos > 0 && cu->ypos + size < s->aheight) {
const MVInfo * mv = &s->blk_info[cu->blk_pos + s->blk_stride * mv_size - 1].mv;
if (mvinfo_valid(mv))
unique_list_mvinfo_add(skip_cand, *mv);
--
2.45.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241111/a321a121/attachment.sig>
More information about the ffmpeg-devel
mailing list