[FFmpeg-trac] #8509(avcodec:new): Converting 8 bit ARGB to Prores 4444 using prores_ks produces alpha channel that is not 100% opaque

FFmpeg trac at avcodec.org
Tue Feb 4 03:45:08 EET 2020


#8509: Converting 8 bit ARGB to Prores 4444 using prores_ks produces alpha channel
that is not 100% opaque
------------------------------------+-----------------------------------
             Reporter:  bford       |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  prores      |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+-----------------------------------

Comment (by cehoyos):

 Does the following inlined change make a difference?
 {{{
 diff --git a/libswscale/input.c b/libswscale/input.c
 index 159f70307d..701586be27 100644
 --- a/libswscale/input.c
 +++ b/libswscale/input.c
 @@ -446,7 +446,7 @@ static void rgbaToA_c(uint8_t *_dst, const uint8_t
 *src, const uint8_t *unused1,
      int16_t *dst = (int16_t *)_dst;
      int i;
      for (i=0; i<width; i++) {
 -        dst[i]= src[4*i+3]<<6;
 +        dst[i]= src[4*i+3]<<6 | src[4*i+3]>>2;
      }
  }

 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8509#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list