[FFmpeg-devel] [PATCH] avutil/pixdesc: use a bigger variable type when writing bitstream formats
James Almer
jamrial at gmail.com
Thu Oct 10 19:46:21 EEST 2024
On 10/9/2024 11:05 PM, James Almer wrote:
> Fixes fate-imgutils and fate-pixelutils under gcc-usan after
> 29ea34728f1064877a0ab9b8dee0f3de69a2d750.
>
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> libavutil/pixdesc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
> index f8d6055084..508d6d2a39 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++;
> + uint32_t val = src_element_size == 4 ? *src32++ : *src16++;
> AV_WB32(p, (AV_RB32(p) & ~mask) | (val << offset));
> p++;
> }
Will apply.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241010/010b6eff/attachment.sig>
More information about the ffmpeg-devel
mailing list