aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2011-10-24 17:56:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-24 18:12:54 +0200
commit463c8d8621f360f644bc3a1dec16e08904ec2a08 (patch)
tree292391355d533cdc125162e8be0ca5be87f4feca /libavformat/mpegts.c
parentd9d492513d7a9c99c55bb106f02d41676c98c90e (diff)
downloadffmpeg-463c8d8621f360f644bc3a1dec16e08904ec2a08.tar.gz
mpegts: fix null-pointer dereference
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 5000134a25..6a3525b25c 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 {