Re: [FFmpeg-devel] [PATCH 1/2] avcodec/avpacket: fix leaks when copying side data if src == dst

2017-09-23 Thread James Almer
On 9/21/2017 7:04 PM, James Almer wrote: > The scenario makes no sense and produces all kinds of memory leaks. > Return 0 instead of an error as the process is pretty much a nop. > > Signed-off-by: James Almer > --- > libavcodec/avpacket.c | 12 ++-- > 1 file changed,

[FFmpeg-devel] [PATCH 1/2] avcodec/avpacket: fix leaks when copying side data if src == dst

2017-09-21 Thread James Almer
The scenario makes no sense and produces all kinds of memory leaks. Return 0 instead of an error as the process is pretty much a nop. Signed-off-by: James Almer --- libavcodec/avpacket.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git