avcodec/snowenc: simplify spatial_decomposition_count seting code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/293/head
Michael Niedermayer 11 years ago
parent 76c8fbc5f2
commit 8a5ea5b9ef
  1. 5
      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)))

Loading…
Cancel
Save