On Fri, Mar 21, 2014 at 2:59 AM, Justin Ruggles <justin.rugg...@gmail.com> wrote: > On 03/20/2014 09:01 PM, Vittorio Giovara wrote: >> + // Process unknown variables >> + for (i = 0; i < 2; i++) // value_name and value_type >> + while (bytestream2_get_bytes_left(&s->gb) > 0) >> + if (bytestream2_get_byte(&s->gb) == 0) >> + break; > > If there are no bytes left, bytestream2_get_byte() returns 0, so you > don't have to check the remaining byte count.
Amended locally // Process unknown variables for (i = 0; i < 2; i++) // value_name and value_type while (bytestream2_get_byte(&s->gb) != 0); Thanks, Vittorio _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel