lavfi/hue: copy alpha plane too
authorPaul B Mahol <onemda@gmail.com>
Fri, 12 Apr 2013 18:32:46 +0000 (18:32 +0000)
committerPaul B Mahol <onemda@gmail.com>
Fri, 12 Apr 2013 18:32:46 +0000 (18:32 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/vf_hue.c

index 038f7f7..85caef8 100644 (file)
@@ -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],