Commit 8a5ea5b9 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/snowenc: simplify spatial_decomposition_count seting code

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 76c8fbc5
......@@ -1664,9 +1664,6 @@ 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;
while( !(width >>(s->chroma_h_shift + s->spatial_decomposition_count))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment