]> git.sesse.net Git - ffmpeg/commit
avcodec/hevc_ps: Remove dead code in vps_id check
authorAndriy Gelman <andriy.gelman@gmail.com>
Sun, 22 Sep 2019 04:17:29 +0000 (00:17 -0400)
committerJames Almer <jamrial@gmail.com>
Thu, 26 Sep 2019 14:20:14 +0000 (11:20 -0300)
commit80e1c93c87f12e8ad8a2a37b0976204fddeaccc5
treea910eeda14a0a0754dc1563dc2e853daee7c8863
parent9b611deef176029750a498fe2369b4e7c7d0ffd6
avcodec/hevc_ps: Remove dead code in vps_id check

Since reading 4 bits always returns a value in the range [0, 15], the
check for vps_id >= HEVC_MAX_VPS_COUNT, where HEVC_MAX_VPS_COUNT = 16, is redundant.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/hevc_ps.c