aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-11-08 14:13:30 +0100
committerAnton Khirnov <anton@khirnov.net>2011-11-08 18:56:39 +0100
commit3110ad8329c39d1512eea86db617fa339ba5d076 (patch)
treeaff274980794b223d815296dd67eb2416f9c50d7
parent2467d8d9eaae52eb8e18e276a44a15d1d8fd7f97 (diff)
downloadffmpeg-3110ad8329c39d1512eea86db617fa339ba5d076.tar.gz
mpegts: set stream id on just created stream, not an unrelated variable
Bug introduced in 84ad31ff180fa089cd6bfd93c246336a16036455. Thanks to Uoti Urpala for finding it.
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 2e390e4268..71447fa507 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -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) {