mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-16 11:47:04 +00:00
avutil/pixdesc: use a bigger variable type when writing bitstream formats
Fixes fate-imgutils and fate-pixelutils under gcc-usan after
29ea34728f
.
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
7bb283aa7b
commit
1cead90292
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user