Files
FFmpeg/libavcodec
Andreas Rheinhardt cee04cbfe1 avcodec/decode: Fix leaks upon subtitle decoding errors
Up until now, various subtitle decoders have not cleaned up
the AVSubtitle on error; this task must not be left to the user
because the documentation explicitly states that the AVSubtitle
"must be freed with avsubtitle_free if *got_sub_ptr is set"
(which it isn't on error).
Leaks happen upon failure in ff_ass_add_rect() or in
ass_decode_frame(); freeing generically also allows to remove
now redundant freeing code in pgssubdec and dvbsubdec.
While just at it, also reset got_sub_ptr generically on error.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-12-16 02:37:26 +01:00
..
2021-10-03 11:42:15 +02:00
2021-09-05 22:22:05 +02:00
2021-10-08 20:37:36 +11:00
2021-10-08 20:37:36 +11:00
2021-08-05 19:46:33 +02:00
2021-09-29 18:00:13 +08:00
2021-10-09 11:42:16 +02:00
2021-12-03 16:09:14 +01:00
2021-12-03 16:09:14 +01:00
2021-10-02 18:49:40 +02:00
2021-09-19 22:36:23 +02:00
2021-10-10 17:44:41 +02:00
2021-08-26 09:20:56 +02:00
2021-09-12 22:23:35 +02:00