Commit 87d55092 authored by Timothy Gu's avatar Timothy Gu

avfilter: Reindent

parent 9b40ce5a
...@@ -347,20 +347,19 @@ int ff_request_frame(AVFilterLink *link) ...@@ -347,20 +347,19 @@ int ff_request_frame(AVFilterLink *link)
if (link->closed) if (link->closed)
return AVERROR_EOF; return AVERROR_EOF;
// TODO reindent if (link->srcpad->request_frame)
if (link->srcpad->request_frame) ret = link->srcpad->request_frame(link);
ret = link->srcpad->request_frame(link); else if (link->src->inputs[0])
else if (link->src->inputs[0]) ret = ff_request_frame(link->src->inputs[0]);
ret = ff_request_frame(link->src->inputs[0]); if (ret == AVERROR_EOF && link->partial_buf) {
if (ret == AVERROR_EOF && link->partial_buf) { AVFrame *pbuf = link->partial_buf;
AVFrame *pbuf = link->partial_buf; link->partial_buf = NULL;
link->partial_buf = NULL; ret = ff_filter_frame_framed(link, pbuf);
ret = ff_filter_frame_framed(link, pbuf); }
} if (ret < 0) {
if (ret < 0) { if (ret == AVERROR_EOF)
if (ret == AVERROR_EOF) link->closed = 1;
link->closed = 1; }
}
return ret; return ret;
} }
......
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