diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-12 03:35:19 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-12 03:36:17 +0200 |
commit | 3b5632479e4e2f83f1a398161819e5c859e08dfe (patch) | |
tree | af1d82d2ea0a8fffaf23a1070a79875edb11eb26 /libavcodec | |
parent | 9eb99ab25b5ec9af9e575371c9ef84a37c63b3e5 (diff) | |
download | ffmpeg-3b5632479e4e2f83f1a398161819e5c859e08dfe.tar.gz |
snow: fix 32x32 encoding
Fixes ticket1083
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/snowenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index ea66d5fd9c..70919603a6 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -1712,6 +1712,10 @@ redo_frame: else s->spatial_decomposition_count= 5; + while( !(width >>(s->chroma_h_shift + s->spatial_decomposition_count)) + || !(height>>(s->chroma_v_shift + s->spatial_decomposition_count))) + s->spatial_decomposition_count--; + s->m.pict_type = pic->pict_type; s->qbias = pic->pict_type == AV_PICTURE_TYPE_P ? 2 : 0; |