diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-05 22:29:55 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-05 22:29:55 +0100 |
commit | 43b1fd5bb4ef0dd72f98a984d76690e28bbf7f32 (patch) | |
tree | 4465cd3e373cadefba67213580b3e8b53a9682f8 | |
parent | 0c494114ccbedf339c3ac6ea9923d726b6563879 (diff) | |
download | ffmpeg-43b1fd5bb4ef0dd72f98a984d76690e28bbf7f32.tar.gz |
avcodec/hevc: drop redundant ifs()
Found-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/hevc.c | 6 |
1 files 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) { |