diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-21 23:58:33 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-21 23:58:33 +0400 |
commit | 8a5ea5b9efca8e62cc86766eb457f4753abd2576 (patch) | |
tree | e924bdaa35d78bab5ed928d085e1cb663a8f7e7f /libavcodec/snowenc.c | |
parent | 76c8fbc5f22c4a93c08030b10e5dbbd4e0c4dd68 (diff) |
avcodec/snowenc: simplify spatial_decomposition_count seting code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r-- | libavcodec/snowenc.c | 5 |
1 files changed, 1 insertions, 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))) |