1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö 2014-09-17 12:03:18 +03:00
parent 3f2c70355a
commit 2bb2c2bd75

View File

@ -73,6 +73,7 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s,
rtpctx->start_time_realtime = s->start_time_realtime; rtpctx->start_time_realtime = s->start_time_realtime;
avcodec_copy_context(rtpctx->streams[0]->codec, st->codec); avcodec_copy_context(rtpctx->streams[0]->codec, st->codec);
rtpctx->streams[0]->time_base = st->time_base;
if (handle) { if (handle) {
ret = ffio_fdopen(&rtpctx->pb, handle); ret = ffio_fdopen(&rtpctx->pb, handle);