mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 18:09:36 +00:00
lavc/hevcdec: simplify condition
This commit is contained in:
parent
0407556716
commit
a82f2b0924
@ -3115,7 +3115,7 @@ static int decode_nal_unit(HEVCContext *s, const H2645NAL *nal)
|
||||
ctb_addr_ts = hls_slice_data_wpp(s, nal);
|
||||
else
|
||||
ctb_addr_ts = hls_decode_entry(s, &gb);
|
||||
if (ctb_addr_ts >= (s->ps.sps->ctb_width * s->ps.sps->ctb_height)) {
|
||||
if (ctb_addr_ts >= s->cur_frame->ctb_count) {
|
||||
ret = hevc_frame_end(s);
|
||||
if (ret < 0)
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user