Skip to content
Snippets Groups Projects
Commit 2bb2c2bd authored by Martin Storsjö's avatar Martin Storsjö
Browse files

rtpenc_chain: Pass the initial time_base hint on to the chained muxer


In practice this hint is ignored - the rtp muxer always overwrites
the stream time base without taking the hint into account. But as
a general practice this is the correct way to pass a time base hint
on to a chained muxer.

This avoids warnings about using the codec time base as hint
being deprecated.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 3f2c7035
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment