[FFmpeg-cvslog] avcodec/cfhd: add back alpha processing removed in 9cefb9e7ec
    Paul B Mahol 
    git at videolan.org
       
    Sat Jun 29 12:30:03 EEST 2019
    
    
  
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jun 28 19:39:55 2019 +0200| [2edb2627597d99fcad7f6932e7c45f6169250db5] | committer: Paul B Mahol
avcodec/cfhd: add back alpha processing removed in 9cefb9e7ec
Fixes #7886.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2edb2627597d99fcad7f6932e7c45f6169250db5
---
 libavcodec/cfhd.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c
index 846d334b9b..49a5a2c30a 100644
--- a/libavcodec/cfhd.c
+++ b/libavcodec/cfhd.c
@@ -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;
    
    
More information about the ffmpeg-cvslog
mailing list