Files
ffmpeg-rockchip/libavcodec
Andreas Rheinhardt f4e6aa609d avcodec/ac3enc_float, eac3enc: Fix leaks on init error
The AC-3 encoders (both floating- as well as fixed-point) as well as
the EAC-3 encoder share code: All use ff_ac3_encode_init() as well as
ff_ac3_encode_close(). Until ee726e777b
ff_ac3_encode_init() called ff_ac3_encode_close() to clean up on error.
Said commit removed this and instead set the FF_CODEC_CAP_INIT_CLEANUP
flag; but it did the latter only for the fixed-point AC-3 encoder and
not for the other two users of ff_ac3_encode_init(). This caused any
already allocated buffer to leak upon a subsequent error for the two
other encoders.

This commit fixes this by adding the FF_CODEC_CAP_INIT_CLEANUP flag
to the other two encoders using ff_ac3_encode_init().

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-09-18 02:52:15 +02:00
..
2020-08-07 23:04:28 +10:00
2020-06-10 12:36:44 +02:00
2020-09-02 00:00:57 +01:00
2020-09-02 00:00:57 +01:00
2020-08-30 16:18:37 +02:00
2020-08-26 21:13:38 +02:00
2020-08-26 21:13:38 +02:00
2020-09-04 16:01:53 +02:00
2020-09-04 16:01:53 +02:00
2020-05-21 09:31:08 +02:00
2020-06-05 18:14:17 +02:00
2020-06-14 18:20:37 +02:00
2020-06-15 04:22:28 +02:00
2020-07-20 18:41:09 +02:00
2020-07-20 18:41:09 +02:00
2020-05-12 01:00:28 +02:00
2020-05-26 10:52:12 +01:00
2020-05-26 10:52:12 +01:00
2020-05-26 10:52:12 +01:00
2020-06-08 20:45:56 +02:00
2020-05-30 18:02:55 +02:00
2020-07-05 19:59:49 +02:00
2020-09-01 14:19:19 +02:00
2020-04-26 18:38:25 +01:00
2020-05-22 22:23:18 +02:00
2020-07-06 18:23:50 +01:00
2020-07-20 18:41:09 +02:00
2020-04-26 18:38:25 +01:00
2020-04-17 19:33:43 +10:00
2020-04-26 18:38:25 +01:00
2020-04-16 15:05:07 -03:00
2020-05-23 07:07:36 +02:00