From 43b1fd5bb4ef0dd72f98a984d76690e28bbf7f32 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 5 Feb 2015 22:29:55 +0100 Subject: [PATCH] avcodec/hevc: drop redundant ifs() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found-by: Clément Bœsch Signed-off-by: Michael Niedermayer --- libavcodec/hevc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index afbfda1816..e67827b599 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -335,10 +335,8 @@ static int set_sps(HEVCContext *s, const HEVCSPS *sps) ff_videodsp_init (&s->vdsp, sps->bit_depth); for (i = 0; i < 3; i++) { - if (s->sao_pixel_buffer_h[i]) - av_freep(&s->sao_pixel_buffer_h[i]); - if (s->sao_pixel_buffer_v[i]) - av_freep(&s->sao_pixel_buffer_v[i]); + av_freep(&s->sao_pixel_buffer_h[i]); + av_freep(&s->sao_pixel_buffer_v[i]); } if (sps->sao_enabled && !s->avctx->hwaccel) {