diff options
author | Alexander V. Lukyanov <lavv17f@gmail.com> | 2014-07-08 11:54:15 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2014-07-10 11:24:19 +0300 |
commit | 5adcef9c1bf701ba2dd43363ae983ba6d74bdb9a (patch) | |
tree | 83bbf74577a21e36ab1e69f161e966291dde48b3 /libavformat/pcmdec.c | |
parent | f46bb608d9d76c543e4929dc8cffe36b84bd789e (diff) | |
download | ffmpeg-5adcef9c1bf701ba2dd43363ae983ba6d74bdb9a.tar.gz |
mpegts: pass MpegTSContext ptr explicitly
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>
Diffstat (limited to 'libavformat/pcmdec.c')
0 files changed, 0 insertions, 0 deletions