mirror of https://github.com/FFmpeg/FFmpeg.git
AVFormatContext->priv_data is not always a MpegTSContext, it can be RTSPState when decoding a RTP stream. So it is necessary to pass MpegTSContext pointer explicitly. Within libav, the write_section_data function doesn't actually use the MpegTSContext at all, so this doesn't change anything at the moment (no memory was corrupted before), but it reduces the risk of anybody trying to touch the MpegTSContext via AVFormatContext->priv_data in the future. Signed-off-by: Martin Storsjö <martin@martin.st>pull/77/head
parent
f46bb608d9
commit
5adcef9c1b
1 changed files with 4 additions and 5 deletions
Loading…
Reference in new issue