From 8a5ea5b9efca8e62cc86766eb457f4753abd2576 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 21 Mar 2014 20:58:33 +0100 Subject: [PATCH] avcodec/snowenc: simplify spatial_decomposition_count seting code Signed-off-by: Michael Niedermayer --- libavcodec/snowenc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index 5fea269068..219576481f 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -1664,10 +1664,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, redo_frame: - if (pic->pict_type == AV_PICTURE_TYPE_I) - s->spatial_decomposition_count= 5; - else - s->spatial_decomposition_count= 5; + s->spatial_decomposition_count= 5; while( !(width >>(s->chroma_h_shift + s->spatial_decomposition_count)) || !(height>>(s->chroma_v_shift + s->spatial_decomposition_count)))