aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-21 20:58:33 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-21 20:58:33 +0100
commit8a5ea5b9efca8e62cc86766eb457f4753abd2576 (patch)
treee924bdaa35d78bab5ed928d085e1cb663a8f7e7f /libavcodec
parent76c8fbc5f22c4a93c08030b10e5dbbd4e0c4dd68 (diff)
downloadffmpeg-8a5ea5b9efca8e62cc86766eb457f4753abd2576.tar.gz
avcodec/snowenc: simplify spatial_decomposition_count seting code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/snowenc.c5
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)))