mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 09:02:20 +00:00
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> Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
02992add2e
commit
14a664836a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user