[FFmpeg-devel] [PATCH] swscale/unscaled: add pal8 -> gbr(a)p special converter

Michael Niedermayer michael at niedermayer.cc
Fri Dec 20 03:23:24 EET 2024


Hi

On Wed, Dec 18, 2024 at 03:24:59PM +0100, Niklas Haas wrote:
> From: Niklas Haas <git at haasn.dev>
> 
> Fixes: ticket #9520
> Signed-off-by: Niklas Haas <git at haasn.dev>
> Sponsored-by: Sovereign Tech Fund
> ---
>  libswscale/swscale.c          |  2 +
>  libswscale/swscale_unscaled.c | 81 ++++++++++++++++++++++++++++++++++-
>  2 files changed, 81 insertions(+), 2 deletions(-)
> 
> diff --git a/libswscale/swscale.c b/libswscale/swscale.c
> index 96634acfd6..bd5b6370db 100644
> --- a/libswscale/swscale.c
> +++ b/libswscale/swscale.c
> @@ -910,6 +910,8 @@ void ff_update_palette(SwsInternal *c, const uint32_t *pal)
>          case AV_PIX_FMT_BGR32_1:
>  #if HAVE_BIGENDIAN
>          case AV_PIX_FMT_BGR24:
> +        case AV_PIX_FMT_BGRP:
> +        case AV_PIX_FMT_BGRAP:
>  #endif

breaks MIPS

src/libswscale/swscale.c: In function ‘ff_update_palette’:
src/libswscale/swscale.c:913:14: error: ‘AV_PIX_FMT_BGRP’ undeclared (first use in this function); did you mean ‘AV_PIX_FMT_BGR0’?
         case AV_PIX_FMT_BGRP:
              ^~~~~~~~~~~~~~~
              AV_PIX_FMT_BGR0
src/libswscale/swscale.c:913:14: note: each undeclared identifier is reported only once for each function it appears in
src/libswscale/swscale.c:914:14: error: ‘AV_PIX_FMT_BGRAP’ undeclared (first use in this function); did you mean ‘AV_PIX_FMT_BGRP’?
         case AV_PIX_FMT_BGRAP:
              ^~~~~~~~~~~~~~~~
              AV_PIX_FMT_BGRP

thx


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Frequently ignored answer#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241220/a05f71af/attachment.sig>


More information about the ffmpeg-devel mailing list