[FFmpeg-devel] [PATCH] hevc: fix size condition in ptl parsing

Carl Eugen Hoyos cehoyos at ag.or.at
Fri May 6 19:49:14 CEST 2016


Hendrik Leppkes <h.leppkes <at> gmail.com> writes:

> -    get_bits_left(gb) < 8 + 8*2) {
> +    get_bits_left(gb) < 8 + (8*2 * (max_num_sub_layers - 1 > 0))) {

Isnt't "max_num_sub_layers > 1" more readable?

Carl Eugen



More information about the ffmpeg-devel mailing list