mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/hue: copy alpha plane too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
72ad0d56a1
commit
047a027d0b
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user