Commit 2edb2627 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/cfhd: add back alpha processing removed in 9cefb9e7

Fixes #7886.
parent 098ab932
...@@ -884,6 +884,8 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame, ...@@ -884,6 +884,8 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
high = s->plane[plane].l_h[7]; high = s->plane[plane].l_h[7];
for (i = 0; i < lowpass_height * 2; i++) { for (i = 0; i < lowpass_height * 2; i++) {
horiz_filter_clip(dst, low, high, lowpass_width, s->bpc); 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; low += lowpass_width;
high += lowpass_width; high += lowpass_width;
dst += pic->linesize[act_plane] / 2; dst += pic->linesize[act_plane] / 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment