Browse Source

vp9: switch min_tile_cols location so it shifts up instead of down.

This fixes cases where the shifted number is 64, but we shifted non-
zero numbers away in the shift. The change makes behaviour consistent
with libvpx.
tags/n3.0
Ronald S. Bultje 10 years ago
parent
commit
a0d8a81075
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vp9.c

+ 1
- 1
libavcodec/vp9.c View File

@@ -823,7 +823,7 @@ static int decode_frame_header(AVCodecContext *ctx,
return res;
}
for (s->tiling.log2_tile_cols = 0;
(s->sb_cols >> s->tiling.log2_tile_cols) > 64;
s->sb_cols > (64 << s->tiling.log2_tile_cols);
s->tiling.log2_tile_cols++) ;
for (max = 0; (s->sb_cols >> max) >= 4; max++) ;
max = FFMAX(0, max - 1);


Loading…
Cancel
Save