[FFmpeg-cvslog] avformat/rtpenc_mpegts: relay streamid to mpegts muxer streams.

Gyan Doshi git at videolan.org
Fri Mar 26 11:15:26 EET 2021


ffmpeg | branch: release/4.4 | Gyan Doshi <ffmpeg at gyani.pro> | Thu Mar 18 19:10:15 2021 +0530| [a6dc1e84d2ae8eeb18dd4d7f3a05e5b15556cba3] | committer: Gyan Doshi

avformat/rtpenc_mpegts: relay streamid to mpegts muxer streams.

Cherry-picked 325bb04188

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

 libavformat/rtpenc_mpegts.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/rtpenc_mpegts.c b/libavformat/rtpenc_mpegts.c
index d501d09590..22881461e4 100644
--- a/libavformat/rtpenc_mpegts.c
+++ b/libavformat/rtpenc_mpegts.c
@@ -77,6 +77,7 @@ static int rtp_mpegts_write_header(AVFormatContext *s)
             goto fail;
         st->time_base           = s->streams[i]->time_base;
         st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio;
+        st->id                  = s->streams[i]->id;
         avcodec_parameters_copy(st->codecpar, s->streams[i]->codecpar);
     }
     if ((ret = avio_open_dyn_buf(&mpegts_ctx->pb)) < 0)



More information about the ffmpeg-cvslog mailing list