diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-02 16:33:25 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-02 18:47:48 +0200 |
commit | 6f1dd6f45a641ca7670c7b00fbeea42420b89ada (patch) | |
tree | 2d2e87d656893229c7f1aae04d8e6d80c0c1bf82 | |
parent | 0ff5cbedd2b6e813064fe4f8aab735162889037c (diff) | |
download | ffmpeg-6f1dd6f45a641ca7670c7b00fbeea42420b89ada.tar.gz |
lavfi: add braces around the block of an if() expression in avfilter_default_get_video_buffer
Clarify code layout.
-rw-r--r-- | libavfilter/defaults.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c index 4a01b10b9c..c83d500652 100644 --- a/libavfilter/defaults.c +++ b/libavfilter/defaults.c @@ -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)); |