Commit f0a5f710 authored by Clément Bœsch's avatar Clément Bœsch

lavfi/hue: reindent.

parent 3da54858
...@@ -287,12 +287,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic) ...@@ -287,12 +287,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
direct = 1; direct = 1;
outpic = inpic; outpic = inpic;
} else { } else {
outpic = ff_get_video_buffer(outlink, outlink->w, outlink->h); outpic = ff_get_video_buffer(outlink, outlink->w, outlink->h);
if (!outpic) { if (!outpic) {
av_frame_free(&inpic); av_frame_free(&inpic);
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
} }
av_frame_copy_props(outpic, inpic); av_frame_copy_props(outpic, inpic);
} }
if (!hue->flat_syntax) { if (!hue->flat_syntax) {
...@@ -328,9 +328,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic) ...@@ -328,9 +328,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
hue->var_values[VAR_N] += 1; hue->var_values[VAR_N] += 1;
if (!direct) if (!direct)
av_image_copy_plane(outpic->data[0], outpic->linesize[0], av_image_copy_plane(outpic->data[0], outpic->linesize[0],
inpic->data[0], inpic->linesize[0], inpic->data[0], inpic->linesize[0],
inlink->w, inlink->h); inlink->w, inlink->h);
process_chrominance(outpic->data[1], outpic->data[2], outpic->linesize[1], process_chrominance(outpic->data[1], outpic->data[2], outpic->linesize[1],
inpic->data[1], inpic->data[2], inpic->linesize[1], inpic->data[1], inpic->data[2], inpic->linesize[1],
...@@ -338,7 +338,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic) ...@@ -338,7 +338,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
hue->hue_cos, hue->hue_sin); hue->hue_cos, hue->hue_sin);
if (!direct) if (!direct)
av_frame_free(&inpic); av_frame_free(&inpic);
return ff_filter_frame(outlink, outpic); return ff_filter_frame(outlink, outpic);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment