Files
FFmpeg/libavformat
Vadym Bezdushnyi bc04ea39a5 avformat/movenccenc: Fix memory leak for muxing CENC-encrypted files
Memory for auxillary_info was not freed after usage.

Leak can be reproduced with following commands:

Optionally, generate input video:
ffmpeg -f lavfi -i testsrc=duration=10:size=1280x720:rate=30 input.mp4

Run ffmpeg with valgrind:
valgrind --leak-check=full --show-leak-kinds=all \
ffmpeg -y -i input.mp4 -vcodec copy -acodec copy \
-encryption_scheme cenc-aes-ctr \
-encryption_key 00000000000000000000000000000000 \
-encryption_kid 00000000000000000000000000000000 \
ffmpeg_encrypted.mp4

For test video which has duration of 10 sec, leak is 4 Kb.
For 100 sec video, leak will be 33 Kb. Most likely,
leaked memory will grow linearly to the number of input frames.

Signed-off-by: Vadym Bezdushnyi <vadim.bezdush@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
2021-02-27 22:09:51 +01:00
..
2021-02-09 19:37:27 +01:00
2020-10-03 21:50:59 +02:00
2021-01-23 14:32:54 +01:00
2019-12-12 19:25:33 +01:00
2020-10-25 23:44:26 +10:00
2020-11-09 14:58:38 +10:00
2019-12-12 19:25:33 +01:00
2021-01-29 19:36:46 +01:00
2021-02-02 23:53:29 +01:00
2021-02-23 10:14:26 +01:00
2021-02-02 23:53:29 +01:00
2020-10-06 00:01:35 +08:00
2020-10-06 00:01:27 +08:00
2021-01-23 14:32:54 +01:00
2021-02-04 17:52:45 +01:00
2020-11-11 17:05:24 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2017-09-01 18:52:56 +08:00
2020-03-17 16:05:49 +01:00
2021-01-23 01:05:25 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 16:04:42 +01:00
2020-10-24 19:11:12 +02:00
2020-11-04 23:30:53 +01:00
2020-03-17 16:08:13 +01:00
2021-01-25 09:36:47 +01:00
2020-10-07 22:16:09 +02:00
2021-02-15 00:34:01 +01:00
2021-02-25 23:10:14 +01:00
2020-09-24 13:38:28 +02:00
2020-12-21 01:27:33 -05:00
2020-10-25 09:49:26 +01:00
2020-09-18 11:30:03 +02:00
2020-06-18 21:31:13 +02:00
2019-10-08 13:47:16 +08:00
2020-09-03 18:11:00 +02:00
2020-11-22 17:45:17 +01:00
2021-02-19 07:45:48 +01:00
2020-09-03 18:03:18 +02:00
2021-01-28 21:08:11 +01:00
2020-03-17 22:46:36 +01:00
2020-10-25 09:49:31 +01:00
2020-06-06 00:25:00 +02:00
2018-02-11 20:03:33 +01:00
2020-02-16 12:54:57 +01:00
2017-04-25 15:39:10 +02: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
2021-02-10 12:28:30 +01:00
2017-01-30 11:00:58 +01:00
2020-09-13 16:05:01 +02:00
2020-06-13 00:43:09 +02:00
2021-01-16 08:51:31 +08:00
2021-02-02 23:53:29 +01:00
2021-02-20 17:43:17 +01:00
2020-02-20 14:41:26 +01:00
2020-12-05 00:08:33 +01:00
2020-07-26 16:47:01 +02:00