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
2021-01-23 14:32:54 +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
2021-01-23 14:32:54 +01:00
2021-02-04 17:52:45 +01:00
2021-01-23 01:05:25 +01:00
2021-01-25 09:36:47 +01:00
2021-02-15 00:34:01 +01:00
2021-02-25 23:10:14 +01:00
2021-02-19 07:45:48 +01:00
2021-01-28 21:08:11 +01:00
2021-02-10 12:28:30 +01: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