[libav-devel] [PATCH] mpegts: pass MpegTSContext ptr explicitly

2014-07-08 Thread Martin Storsjö
From: Alexander V. Lukyanov lavv...@gmail.com 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

Re: [libav-devel] [PATCH] mpegts: pass MpegTSContext ptr explicitly

2014-07-08 Thread Luca Barbato
On 08/07/14 22:37, Martin Storsjö wrote: 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