Opened 4 years ago
Closed 3 years ago
#9273 closed defect (fixed)
Memory leak in HLS input
Reported by: | RobertIntinor | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | HLS leak |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
When retrieving HLS where segments seem to be unavailable a av_dict is leaked for every
attempt.
How to reproduce:
% valgrind --leak-check=full --show-leak-kinds=all ./ffmpeg_g -i https://open.http.mp.streamamg.com/p/3001403/sp/300140300/playManifest/entryId/0_zs5ajgcm/format/applehttp/protocol/https/a.m3u8 ffmpeg version N-102632-g575e52272d built on 2021-06-01
Attachments (2)
Change History (7)
by , 4 years ago
Attachment: | valgrind.log added |
---|
comment:1 by , 4 years ago
I am not comfortable enough with the code base to be sure that my proposed patch is correct, it does however remove the growing memory leak.
comment:2 by , 4 years ago
Note that the HLS url might stop working at any time as it isn't under my control.
follow-up: 4 comment:3 by , 4 years ago
If valgrind is good after your patch send the patch to mailing list.
comment:4 by , 4 years ago
Replying to Balling:
If valgrind is good after your patch send the patch to mailing list.
Sent, see http://ffmpeg.org/pipermail/ffmpeg-devel/2021-June/280860.html
comment:5 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch applied. ad06929d8d95542e661a337423f457f5692e6b3b
Log from valgrind and ffmpeg