mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/snowenc: simplify spatial_decomposition_count seting code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
76c8fbc5f2
commit
8a5ea5b9ef
@ -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…
Reference in New Issue
Block a user