diff options
author | Martin Storsjö <martin@martin.st> | 2015-03-09 23:14:19 +0200 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-05-14 19:04:05 +0200 |
commit | 692fd5635f9fdaa493249f0488d890688b45601d (patch) | |
tree | c83f9f34ed76e67ca5fcb5fcc793332e52de4ca6 /libavformat/vqf.c | |
parent | c3b1261afa319120f998b879b474c4f912eb8750 (diff) | |
download | ffmpeg-692fd5635f9fdaa493249f0488d890688b45601d.tar.gz |
rtpenc_mpegts: Set chain->rtp_ctx only after avformat_write_header succeeded
By making sure we at each time only have one pointer set, either a
local variable or one in the context, we avoid potential double frees
in the cleanup routines. If chain->rtp_ctx is set, it is closed by
calling avformat_write_trailer, but that shouldn't be called unless
avformat_write_header succeeded.
This issue was pointed out by Andreas Cadhalpun.
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit cf402d6fa88acd647cdff993429583bec8a34fdc)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavformat/vqf.c')
0 files changed, 0 insertions, 0 deletions