On 03/12/15 00:41, Vittorio Giovara wrote:
> +    if (ret < 0)
> +        return AVERROR(EINVAL);
> +    if (ret == Z_STREAM_END)
> +        return AVERROR_EOF;

I'd swap those two, and maybe do

ret = buf_size - z->avail_out;
if (ret)
    return ret;
else
    goto retry;

for the rest I do not remember the corner cases in zlib so I doubt it
would infiniloop.

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

Reply via email to