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

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 397ffde1.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 368f5035
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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