avcodec/hevc_ps: fix range of num_tile_{columns,rows}_minus1
authorJames Almer <jamrial@gmail.com>
Sun, 30 Jun 2019 20:32:44 +0000 (17:32 -0300)
committerJames Almer <jamrial@gmail.com>
Fri, 5 Jul 2019 19:30:40 +0000 (16:30 -0300)
commit7c644989a5c27793331a14ee0f433ca177a0ffae
tree5135976db2d1ddf11cadcca07c0a2e222d1a7642
parent0cbdedbd2fc2211d0477c32c30f12e7aad4443de
avcodec/hevc_ps: fix range of num_tile_{columns,rows}_minus1

From 7.4.3.3.1:

num_tile_columns_minus1 shall be in the range of 0 to PicWidthInCtbsY - 1, inclusive.
num_tile_rows_minus1 shall be in the range of 0 to PicHeightInCtbsY - 1, inclusive.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/hevc_ps.c