You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/hevc: drop redundant ifs()
Found-by: Clément Bœsch <u@pkh.me> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user