mirror of https://github.com/FFmpeg/FFmpeg.git
ff_read_packet had potential memleaks: 1. If av_packet_make_refcounted fails, it means that the packet is not refcounted, but it could nevertheless carry side data and therefore needs to be unreferenced. 2. If putting a packet on a packet list fails, it wasn't unreferenced. Furthermore, read_frame_internal leaked a packet's (side) data if a context update was required and failed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>pull/323/head
parent
e045be92cd
commit
66d5e43b99
1 changed files with 12 additions and 4 deletions
Loading…
Reference in new issue