This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 44fd92c5147b4f3255a73fce013b373d8343002b Author: Ramiro Polla <[email protected]> AuthorDate: Tue Sep 23 16:33:26 2025 +0200 Commit: Ramiro Polla <[email protected]> CommitDate: Fri Feb 20 16:32:10 2026 +0100 avcodec/mjpegdec: improve debug message in find_marker() Use pointer arithmetic instead of an extra variable to keep track of skipped bytes. --- libavcodec/mjpegdec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index c36a91fd9d..f54e11c828 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -2210,7 +2210,6 @@ static int find_marker(const uint8_t **pbuf_ptr, const uint8_t *buf_end) { const uint8_t *buf_ptr; int val; - int skipped = 0; buf_ptr = *pbuf_ptr; while ((buf_ptr = memchr(buf_ptr, 0xff, buf_end - buf_ptr))) { @@ -2223,12 +2222,12 @@ static int find_marker(const uint8_t **pbuf_ptr, const uint8_t *buf_end) break; } } - skipped++; } buf_ptr = buf_end; val = -1; found: - ff_dlog(NULL, "find_marker skipped %d bytes\n", skipped); + ff_dlog(NULL, "find_marker skipped %td bytes\n", + (buf_ptr - *pbuf_ptr) - (val < 0 ? 0 : 2)); *pbuf_ptr = buf_ptr; return val; } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
