diff options
author | James Almer <jamrial@gmail.com> | 2024-10-09 23:03:36 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-10-10 16:03:22 -0300 |
commit | 1cead9029227614cb12a07e69d8823287ca980a0 (patch) | |
tree | f7e11ccda66023183c6733b0cd19ba435e4687e5 | |
parent | 7bb283aa7bdc96c475086a0769fe228bddd34db1 (diff) | |
download | ffmpeg-1cead9029227614cb12a07e69d8823287ca980a0.tar.gz |
avutil/pixdesc: use a bigger variable type when writing bitstream formats
Fixes fate-imgutils and fate-pixelutils under gcc-usan after
29ea34728f1064877a0ab9b8dee0f3de69a2d750.
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavutil/pixdesc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index f8d6055084..43b9c08e14 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -133,7 +133,7 @@ void av_write_image_line2(const void *src, uint32_t mask = ((1ULL << depth) - 1) << offset; while (w--) { - uint16_t val = src_element_size == 4 ? *src32++ : *src16++; + unsigned val = src_element_size == 4 ? *src32++ : *src16++; AV_WB32(p, (AV_RB32(p) & ~mask) | (val << offset)); p++; } |