Advertisement
Guest User

Untitled

a guest
Jul 15th, 2018
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.39 KB | None | 0 0
  1. diff --git a/libavcodec/cbs_av1_syntax_template.c b/libavcodec/cbs_av1_syntax_template.c
  2. index ed6338f179..cdbfef631f 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. @@ -1393,6 +1393,7 @@ static int FUNC(uncompressed_header)(CodedBitstreamContext *ctx, RWContext *rw,
  15.          if (current->refresh_frame_flags & (1 << i)) {
  16.              priv->ref[i] = (AV1ReferenceFrameState) {
  17.                  .valid          = 1,
  18. +                .frame_type     = current->frame_type,
  19.                  .upscaled_width = priv->upscaled_width,
  20.                  .frame_width    = priv->frame_width,
  21.                  .frame_height   = priv->frame_height,
  22. @@ -1469,6 +1470,9 @@ static int FUNC(tile_group_obu)(CodedBitstreamContext *ctx, RWContext *rw,
  23.  
  24.      CHECK(FUNC(byte_alignment)(ctx, rw));
  25.  
  26. +    if (current->tg_end == num_tiles - 1)
  27. +        priv->seen_frame_header = 0;
  28. +
  29.      // Tile data follows.
  30.  
  31.      return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement