FFmpeg/libavformat
Andreas Rheinhardt 66d5e43b99 avformat/utils: Fix memleaks
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>
2019-09-25 20:53:01 -03:00
..
2019-05-20 11:58:12 -07:00
2019-05-20 11:58:12 -07:00
2018-05-06 15:07:28 +08:00
2017-09-20 03:31:48 +02:00
2019-08-13 15:38:57 +02:00
2017-09-01 18:52:56 +08:00
2019-08-28 15:44:36 +02:00
2019-03-20 18:38:48 +01:00
2019-08-23 22:24:07 +02:00
2019-05-20 11:58:12 -07:00
2019-09-02 23:08:43 +02:00
2019-08-15 01:26:21 +02:00
2019-05-20 11:58:12 -07:00
2019-06-10 21:35:20 +02:00
2019-09-02 23:08:43 +02:00
2018-02-11 20:03:33 +01:00
2018-02-11 20:03:33 +01:00
2018-05-21 19:43:04 -03:00
2018-05-21 19:43:04 -03:00
2019-03-20 18:38:48 +01:00
2019-09-25 20:53:01 -03:00
2019-06-14 21:36:39 +02:00
2019-06-29 19:22:19 +02:00
2019-07-14 22:17:43 +02:00