diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-04-12 18:32:46 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-04-12 18:32:46 +0000 |
commit | 047a027d0b5503582a1700bca89157b58e9772ad (patch) | |
tree | c26c833afe0f33e4075b2df6751ab27405482eff | |
parent | 72ad0d56a135682681ccf41943b1146496d7602c (diff) | |
download | ffmpeg-047a027d0b5503582a1700bca89157b58e9772ad.tar.gz |
lavfi/hue: copy alpha plane too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavfilter/vf_hue.c | 7 |
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], |