On 11/19/2016 3:59 PM, James Almer wrote:
> Prevents leaking the previously allocated buffer, honoring the expected 
> behavior
> of keeping the packet unchanged in case of error.
> 
> Signed-off-by: James Almer <jamr...@gmail.com>
> ---
> Now using av_reallocp() as suggested.

Actually no, don't use this one. I didn't carefully read the doxy for
av_reallocp and just noticed it frees the original buffer if relocation
fails, which is not what should be done for av_packet_add_side_data().

This patch is dropped in favor of the original. Sorry for the noise.

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to