Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.53 KB | None | 0 0
  1. diff --git a/libavcodec/cbs_av1_syntax_template.c b/libavcodec/cbs_av1_syntax_template.c
  2. index ed6338f179..88fa12bb04 100644
  3. --- a/libavcodec/cbs_av1_syntax_template.c
  4. +++ b/libavcodec/cbs_av1_syntax_template.c
  5. @@ -511,7 +511,7 @@ static int FUNC(tile_info)(CodedBitstreamContext *ctx, RWContext *rw,
  6.  
  7.          tile_height_sb = (sb_rows + (1 << current->tile_rows_log2) - 1) >>
  8.              current->tile_rows_log2;
  9. -        priv->tile_cols = (sb_rows + tile_height_sb - 1) / tile_height_sb;
  10. +        priv->tile_rows = (sb_rows + tile_height_sb - 1) / tile_height_sb;
  11.  
  12.      } else {
  13.          int widest_tile_sb, start_sb, size_sb, max_width, max_height;
  14. @@ -971,8 +971,8 @@ static int FUNC(global_motion_params)(CodedBitstreamContext *ctx, RWContext *rw,
  15.              CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 2));
  16.              CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 3));
  17.              if (type == AV1_WARP_MODEL_AFFINE) {
  18. -                CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 2));
  19. -                CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 3));
  20. +                CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 4));
  21. +                CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 5));
  22.              } else {
  23.                  infer(gm_params[ref][4], -current->gm_params[ref][3]);
  24.                  infer(gm_params[ref][5],  current->gm_params[ref][2]);
  25. @@ -1326,7 +1326,7 @@ static int FUNC(uncompressed_header)(CodedBitstreamContext *ctx, RWContext *rw,
  26.          }
  27.      }
  28.  
  29. -    if (current->disable_cdf_update)
  30. +    if (seq->reduced_still_picture_header || current->disable_cdf_update)
  31.          infer(disable_frame_end_update_cdf, 1);
  32.      else
  33.          flag(disable_frame_end_update_cdf);
  34. @@ -1393,6 +1393,7 @@ static int FUNC(uncompressed_header)(CodedBitstreamContext *ctx, RWContext *rw,
  35.          if (current->refresh_frame_flags & (1 << i)) {
  36.              priv->ref[i] = (AV1ReferenceFrameState) {
  37.                  .valid          = 1,
  38. +                .frame_type     = current->frame_type,
  39.                  .upscaled_width = priv->upscaled_width,
  40.                  .frame_width    = priv->frame_width,
  41.                  .frame_height   = priv->frame_height,
  42. @@ -1469,6 +1470,9 @@ static int FUNC(tile_group_obu)(CodedBitstreamContext *ctx, RWContext *rw,
  43.  
  44.      CHECK(FUNC(byte_alignment)(ctx, rw));
  45.  
  46. +    if (current->tg_end == num_tiles - 1)
  47. +        priv->seen_frame_header = 0;
  48. +
  49.      // Tile data follows.
  50.  
  51.      return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement