]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/cfhd: add back alpha processing removed in 9cefb9e7ec
authorPaul B Mahol <onemda@gmail.com>
Fri, 28 Jun 2019 17:39:55 +0000 (19:39 +0200)
committerPaul B Mahol <onemda@gmail.com>
Fri, 28 Jun 2019 18:10:43 +0000 (20:10 +0200)
Fixes #7886.

libavcodec/cfhd.c

index 846d334b9b7be9ed54acbcf072306ababb86ad5f..49a5a2c30a92a48c059fe2e98952f3603d71906a 100644 (file)
@@ -884,6 +884,8 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
             high = s->plane[plane].l_h[7];
             for (i = 0; i < lowpass_height * 2; i++) {
                 horiz_filter_clip(dst, low, high, lowpass_width, s->bpc);
+                if (avctx->pix_fmt == AV_PIX_FMT_GBRAP12 && act_plane == 3)
+                    process_alpha(dst, lowpass_width * 2);
                 low  += lowpass_width;
                 high += lowpass_width;
                 dst  += pic->linesize[act_plane] / 2;