Browse Source

snow: fix 32x32 encoding

Fixes ticket1083

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
3b5632479e
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/snowenc.c

+ 4
- 0
libavcodec/snowenc.c View File

@@ -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;



Loading…
Cancel
Save