1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavfi: add braces around the block of an if() expression in avfilter_default_get_video_buffer

Clarify code layout.
This commit is contained in:
Stefano Sabatini 2011-06-02 16:33:25 +02:00
parent 0ff5cbedd2
commit 6f1dd6f45a

View File

@ -42,7 +42,8 @@ AVFilterBufferRef *avfilter_default_get_video_buffer(AVFilterLink *link, int per
AVFilterBufferRef *picref = NULL;
AVFilterPool *pool = link->pool;
if (pool) for (i = 0; i < POOL_SIZE; i++) {
if (pool) {
for (i = 0; i < POOL_SIZE; i++) {
picref = pool->pic[i];
if (picref && picref->buf->format == link->format && picref->buf->w == w && picref->buf->h == h) {
AVFilterBuffer *pic = picref->buf;
@ -57,6 +58,7 @@ AVFilterBufferRef *avfilter_default_get_video_buffer(AVFilterLink *link, int per
memcpy(picref->linesize, pic->linesize, sizeof(picref->linesize));
return picref;
}
}
} else
pool = link->pool = av_mallocz(sizeof(AVFilterPool));