avcodec/snowenc: simplify spatial_decomposition_count seting code
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 21 Mar 2014 19:58:33 +0000 (20:58 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 21 Mar 2014 19:58:33 +0000 (20:58 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/snowenc.c

index 5fea269..2195764 100644 (file)
@@ -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)))