Re: [FFmpeg-devel] [PATCH v2] avcodec/hevc_ps: Remove dead code in vps_id check

2019-09-26 Thread James Almer
On 9/26/2019 8:48 AM, Andriy Gelman wrote: > On Sun, 22. Sep 00:17, Andriy Gelman wrote: >> From: Andriy Gelman >> >> 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-b

Re: [FFmpeg-devel] [PATCH v2] avcodec/hevc_ps: Remove dead code in vps_id check

2019-09-26 Thread Andriy Gelman
On Sun, 22. Sep 00:17, Andriy Gelman wrote: > From: Andriy Gelman > > 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 > --- > libavcodec/hevc_ps.c |

[FFmpeg-devel] [PATCH v2] avcodec/hevc_ps: Remove dead code in vps_id check

2019-09-21 Thread Andriy Gelman
From: Andriy Gelman 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 --- libavcodec/hevc_ps.c | 8 1 file changed, 8 deletions(-) diff --git a/libav