[FFmpeg-cvslog] lavfi/hue: copy alpha plane too

Paul B Mahol git at videolan.org
Fri Apr 12 20:34:05 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Apr 12 18:32:46 2013 +0000| [047a027d0b5503582a1700bca89157b58e9772ad] | committer: Paul B Mahol

lavfi/hue: copy alpha plane too

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=047a027d0b5503582a1700bca89157b58e9772ad
---

 libavfilter/vf_hue.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c
index 038f7f7..85caef8 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],



More information about the ffmpeg-cvslog mailing list