Commit 463c8d86 authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Michael Niedermayer

mpegts: fix null-pointer dereference

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d9d49251
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment