[FFmpeg-cvslog] mpegts: set stream id on just created stream, not an unrelated variable

Anton Khirnov git at videolan.org
Wed Nov 9 03:31:06 CET 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Nov  8 14:13:30 2011 +0100| [3110ad8329c39d1512eea86db617fa339ba5d076] | committer: Anton Khirnov

mpegts: set stream id on just created stream, not an unrelated variable

Bug introduced in 84ad31ff180fa089cd6bfd93c246336a16036455.
Thanks to Uoti Urpala for finding it.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3110ad8329c39d1512eea86db617fa339ba5d076
---

 libavformat/mpegts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 2e390e4..71447fa 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) {



More information about the ffmpeg-cvslog mailing list