mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-30 19:32:13 +00:00
Revert "rtpenc_chain: Don't copy the time_base back to the caller"
While it strictly isn't necessary to copy the time base (since
any use of it is scaled in ff_write_chained), it still is better
to signal the actual time base to the caller, avoiding one
unnecessary rescaling. This also lets the caller know what the
actual internal time base is, in case that is useful info
for some caller.
This reverts commit 397ffde115
.
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
368f50359e
commit
abb810db03
@ -96,6 +96,9 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s,
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Copy the RTP AVStream timebase back to the original AVStream */
|
||||
st->time_base = rtpctx->streams[0]->time_base;
|
||||
|
||||
*out = rtpctx;
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user