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. -Justin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
