Rescale packet timestamp to container time base
Rescale packet timestamp to container time base

Some containers force their own time base. For example, matroska
overwrite time_base to (AVRational) {1, 1000}.

Therefore, rescale our packet timestamps to the output stream time base.

Suggested-by: Steve Lhomme <4317e33bca9d17016d37cb2d32c67dc65ca52d8e@ycbcr.xyz>

Genymobile/scrcpy,Genymobile/scrcpy,Genymobile/scrcpy