On 03/08/14 02:17, Vittorio Giovara wrote:
>      buf += 2;  /// skipping 2 unneeded bytes
> -    bytestream_get_buffer(&buf, cdg_data, buf_size - CDG_HEADER_SIZE);
> +
> +    if (buf_size > CDG_HEADER_SIZE)
> +        bytestream_get_buffer(&buf, cdg_data, buf_size - CDG_HEADER_SIZE);


Looks incomplete. The condition seems always invalid and should reported
to the user.

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to