diff mbox

[FFmpeg-devel,4/5] lavfi/framepool: cosmetic style fixes

Message ID 20170105111136.31854-5-matthieu.bouron@gmail.com
State Accepted
Commit b1ed7957b835eed84fa151487d9014814daefa3d
Headers show

Commit Message

Matthieu Bouron Jan. 5, 2017, 11:11 a.m. UTC
---
 libavfilter/framepool.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Michael Niedermayer Jan. 5, 2017, 5:46 p.m. UTC | #1
On Thu, Jan 05, 2017 at 12:11:35PM +0100, Matthieu Bouron wrote:
> ---
>  libavfilter/framepool.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)

LGTM

thx

[...]
diff mbox

Patch

diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c
index 74235d4886..e1f1e2cc41 100644
--- a/libavfilter/framepool.c
+++ b/libavfilter/framepool.c
@@ -220,9 +220,8 @@  AVFrame *ff_frame_pool_get(FFFramePool *pool)
                 break;
 
             frame->buf[i] = av_buffer_pool_get(pool->pools[i]);
-            if (!frame->buf[i]) {
+            if (!frame->buf[i])
                 goto fail;
-            }
 
             frame->data[i] = frame->buf[i]->data;
         }
@@ -233,9 +232,8 @@  AVFrame *ff_frame_pool_get(FFFramePool *pool)
                 pool->format == AV_PIX_FMT_PAL8 ? AV_PIX_FMT_BGR8 : pool->format;
 
             av_assert0(frame->data[1] != NULL);
-            if (avpriv_set_systematic_pal2((uint32_t *)frame->data[1], format) < 0) {
+            if (avpriv_set_systematic_pal2((uint32_t *)frame->data[1], format) < 0)
                 goto fail;
-            }
         }
 
         frame->extended_data = frame->data;