[FFmpeg-devel] [PATCH 2/3] avformat/rtpenc_mpegts: relay streamid to mpegts muxer streams.

Gyan Doshi ffmpeg at gyani.pro
Tue Mar 23 07:37:33 EET 2021


---
 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)
-- 
2.30.1



More information about the ffmpeg-devel mailing list