avcodec/vvc/inter: Don't return void

Returning a void is not allowed by the spec. Just return instead.

Reviewed-by: Nuo Mi <nuomi2021@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-06-10 06:45:08 +02:00
parent 417957ec5e
commit a0ff31e740
1 changed files with 6 additions and 3 deletions

View File

@ -146,18 +146,21 @@ static void emulated_edge(const VVCLocalContext *lc, uint8_t *dst,
subpic_get_rect(&subpic, src_frame, subpic_idx, is_chroma);
if (!wrap_enabled || (dmvr_left >= 0 && dmvr_right <= pic_width)) {
return emulated_edge_no_wrap(lc, dst, src, src_stride,
emulated_edge_no_wrap(lc, dst, src, src_stride,
x_off, y_off, block_w, block_h, extra_before, extra_after, &subpic, &sb, dmvr_clip);
return;
}
if (dmvr_right <= 0) {
sb_wrap(&sb, wrap);
return emulated_edge_no_wrap(lc, dst, src, src_stride,
emulated_edge_no_wrap(lc, dst, src, src_stride,
x_off + wrap, y_off, block_w, block_h, extra_before, extra_after, &subpic, &sb, dmvr_clip);
return;
}
if (dmvr_left >= pic_width) {
sb_wrap(&sb, -wrap);
return emulated_edge_no_wrap(lc, dst, src, src_stride,
emulated_edge_no_wrap(lc, dst, src, src_stride,
x_off - wrap, y_off, block_w, block_h, extra_before, extra_after, &subpic, &sb, dmvr_clip);
return;
}
block_w += extra;