summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-06-28 19:39:55 +0200
committerPaul B Mahol <onemda@gmail.com>2019-06-28 20:10:43 +0200
commit2edb2627597d99fcad7f6932e7c45f6169250db5 (patch)
tree33a324b5c6ded793264c43669c9bc5affa68d45a
parent098ab932579ea6d81e0b928f09b425fdd00a2890 (diff)
downloadffmpeg-streaming-2edb2627597d99fcad7f6932e7c45f6169250db5.zip
ffmpeg-streaming-2edb2627597d99fcad7f6932e7c45f6169250db5.tar.gz
avcodec/cfhd: add back alpha processing removed in 9cefb9e7ec
Fixes #7886.
-rw-r--r--libavcodec/cfhd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c
index 846d334..49a5a2c 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;
OpenPOWER on IntegriCloud