This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit b418da28bf3fcd9a80383b0f39e3cd71e55022c1 Author: Manuel Lauss <[email protected]> AuthorDate: Wed Nov 19 17:01:18 2025 +0100 Commit: Manuel Lauss <[email protected]> CommitDate: Fri May 8 05:08:22 2026 +0000 avcodec/sanm: fobj: apply the x/y offsets after size determination Otherwise a wrong size might be determined. Signed-off-by: Manuel Lauss <[email protected]> --- libavcodec/sanm.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c index 6af2b0fd17..fe893b8789 100644 --- a/libavcodec/sanm.c +++ b/libavcodec/sanm.c @@ -2028,8 +2028,8 @@ static int process_frame_obj(SANMVideoContext *ctx, GetByteContext *gb, codec = bytestream2_get_byteu(gb); param = bytestream2_get_byteu(gb); - left = bytestream2_get_le16u(gb) + xoff; - top = bytestream2_get_le16u(gb) + yoff; + left = bytestream2_get_le16u(gb); + top = bytestream2_get_le16u(gb); w = bytestream2_get_le16u(gb); h = bytestream2_get_le16u(gb); bytestream2_skip(gb, 2); @@ -2117,6 +2117,9 @@ static int process_frame_obj(SANMVideoContext *ctx, GetByteContext *gb, memset(ctx->fbuf, 0, ctx->frm0_size); } + left += xoff; + top += yoff; + switch (codec) { case 1: case 3: _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
