[FFmpeg-cvslog] mpegts: fix null-pointer dereference
Hendrik Leppkes
git at videolan.org
Mon Oct 24 18:26:08 CEST 2011
ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Mon Oct 24 17:56:52 2011 +0200| [463c8d8621f360f644bc3a1dec16e08904ec2a08] | committer: Michael Niedermayer
mpegts: fix null-pointer dereference
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=463c8d8621f360f644bc3a1dec16e08904ec2a08
---
libavformat/mpegts.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 5000134..6a3525b 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1125,7 +1125,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
pes = ts->pids[pid]->u.pes_filter.opaque;
if (!pes->st) {
pes->st = avformat_new_stream(pes->stream, NULL);
- st->id = pes->pid;
+ pes->st->id = pes->pid;
}
st = pes->st;
} else {
More information about the ffmpeg-cvslog
mailing list