rtpenc_chain: Pass the initial time_base hint on to the chained muxer
[ffmpeg.git] / libavformat / rtpenc_chain.c
index 10c4020..773a7db 100644 (file)
@@ -73,6 +73,7 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s,
     rtpctx->start_time_realtime = s->start_time_realtime;
 
     avcodec_copy_context(rtpctx->streams[0]->codec, st->codec);
+    rtpctx->streams[0]->time_base = st->time_base;
 
     if (handle) {
         ret = ffio_fdopen(&rtpctx->pb, handle);