[FFmpeg-trac] #8893(avformat:new): multiple calls to srt_startup/srt_cleanup within a process
FFmpeg
trac at avcodec.org
Tue Sep 15 02:02:13 EEST 2020
#8893: multiple calls to srt_startup/srt_cleanup within a process
----------------------------------+---------------------------------------
Reporter: malcolmb | Type: enhancement
Status: new | Priority: normal
Component: avformat | Version: git-master
Keywords: srt | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+---------------------------------------
For software using libavformat directly, allocating and deallocating a
context that's using libsrt will cause srt_startup() and srt_cleanup() to
be called. Unless you always have SRT context in existence, this will
cause the srt startup/cleanup to actually execute multiple times within
one process. It's reference counted so if you have one context in
existence all the time then it's fine, the work won't be done multiple
times in a single process.
As mentioned by a SRT developer here:
https://github.com/Haivision/srt/issues/928#issuecomment-550432768
This is not a recommended workflow (and it's untested).
It would be great if somehow (maybe via avformat_network_init(),
avformat_network_deinit()), a calling app could avoid the actual extra
startup/cleanups until the process is shutting down.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8893>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list