• Alexander V. Lukyanov's avatar
    mpegts: pass MpegTSContext ptr explicitly · 5adcef9c
    Alexander V. Lukyanov authored
    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: 's avatarMartin Storsjö <martin@martin.st>
    5adcef9c
mpegts.c 72.9 KB