This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit afbf3309093589b74e66a3aa99c9d72659ad0fbc Author: Wu Jianhua <[email protected]> AuthorDate: Tue Apr 15 04:47:12 2025 +0800 Commit: jianhuaw <[email protected]> CommitDate: Sun Nov 29 10:42:10 2026 +0000 avcodec/vvc/inter_template: fix bdof_fetch_samples function for high bitdepth This commit fixed the fetching samples process for Bi-directional optical flow prediction process Signed-off-by: Wu Jianhua <[email protected]> --- libavcodec/vvc/inter_template.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/vvc/inter_template.c b/libavcodec/vvc/inter_template.c index 43c08b76f2..db4f7ca826 100644 --- a/libavcodec/vvc/inter_template.c +++ b/libavcodec/vvc/inter_template.c @@ -275,25 +275,25 @@ static void FUNC(bdof_fetch_samples)(int16_t *_dst, const uint8_t *_src, const p const int y_off = (y_frac >> 3) - 1; const ptrdiff_t src_stride = _src_stride / sizeof(pixel); const pixel *src = (pixel*)_src + (x_off) + y_off * src_stride; - int16_t *dst = _dst - 1 - MAX_PB_SIZE; - const int shift = 14 - BIT_DEPTH; + tpixel *dst = (tpixel *)_dst - 1 - MAX_PB_SIZE; + const int shift = FFMAX(2, 14 - BIT_DEPTH); const int bdof_width = width + 2 * BDOF_BORDER_EXT; // top for (int i = 0; i < bdof_width; i++) - dst[i] = src[i] << shift; + dst[i] = (src[i] << shift); dst += MAX_PB_SIZE; src += src_stride; for (int i = 0; i < height; i++) { - dst[0] = src[0] << shift; - dst[1 + width] = src[1 + width] << shift; + dst[0] = (src[0] << shift); + dst[1 + width] = (src[1 + width] << shift); dst += MAX_PB_SIZE; src += src_stride; } for (int i = 0; i < bdof_width; i++) - dst[i] = src[i] << shift; + dst[i] = (src[i] << shift); } //8.5.6.3.3 Luma integer sample fetching process -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
