On Sun, 15 Dec 2013 00:31:45 -0500, Justin Ruggles <[email protected]> 
wrote:
> +
> +    ret = av_new_packet(pkt, mw.size);

This must be ff_alloc_packet()

> +    if (ret < 0)
> +        goto end;
> +    memcpy(pkt->data, mw.mem, mw.size);
> +
> +    pkt->flags |= AV_PKT_FLAG_KEY;
> +    *got_packet = 1;
> +
> +end:
> +    free(mw.mem); /* must use free() according to libwebp documentation */
> +    WebPPictureFree(pic);
> +    av_freep(&pic);
> +    if (alt_frame)

nit: the check is not needed

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

Reply via email to