Commit d9b89b23 authored by Alex Converse's avatar Alex Converse

mpegts: Fix typo in handling sections in the PMT.

This was an error rebasing 4682a1dc for
commit. The "pes" variable guaranteed to be NULL in that block.
parent b797f735
...@@ -1460,7 +1460,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len ...@@ -1460,7 +1460,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
if (idx >= 0) { if (idx >= 0) {
st = ts->stream->streams[idx]; st = ts->stream->streams[idx];
} else { } else {
st = avformat_new_stream(pes->stream, NULL); st = avformat_new_stream(ts->stream, NULL);
st->id = pid; st->id = pid;
st->codec->codec_type = AVMEDIA_TYPE_DATA; st->codec->codec_type = AVMEDIA_TYPE_DATA;
} }
......
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