aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-04-12 18:32:46 +0000
committerPaul B Mahol <onemda@gmail.com>2013-04-12 18:32:46 +0000
commit047a027d0b5503582a1700bca89157b58e9772ad (patch)
treec26c833afe0f33e4075b2df6751ab27405482eff
parent72ad0d56a135682681ccf41943b1146496d7602c (diff)
downloadffmpeg-047a027d0b5503582a1700bca89157b58e9772ad.tar.gz
lavfi/hue: copy alpha plane too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavfilter/vf_hue.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c
index 038f7f7af7..85caef80dc 100644
--- a/libavfilter/vf_hue.c
+++ b/libavfilter/vf_hue.c
@@ -282,10 +282,15 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
hue->var_values[VAR_N] += 1;
- if (!direct)
+ if (!direct) {
av_image_copy_plane(outpic->data[0], outpic->linesize[0],
inpic->data[0], inpic->linesize[0],
inlink->w, inlink->h);
+ if (inpic->data[3])
+ av_image_copy_plane(outpic->data[3], outpic->linesize[3],
+ inpic->data[3], inpic->linesize[3],
+ inlink->w, inlink->h);
+ }
process_chrominance(outpic->data[1], outpic->data[2], outpic->linesize[1],
inpic->data[1], inpic->data[2], inpic->linesize[1],