mirror of https://git.ffmpeg.org/ffmpeg.git
mpegts: set stream id on just created stream, not an unrelated variable
Bug introduced in 84ad31ff18
.
Thanks to Uoti Urpala for finding it.
This commit is contained in:
parent
2467d8d9ea
commit
3110ad8329
|
@ -1445,7 +1445,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 if (stream_type != 0x13) {
|
||||
|
|
Loading…
Reference in New Issue