提交 3f3ec4f9 编写于 作者: J jp9000

obs-ffmpeg: Fix jim-nvenc initial DTS for fractional FPS

The initial DTS for non-fractional framerates was being incorrectly
calculated.  It assumed that the time base was in frames when it was
not.

Closes obsproject/obs-studio#1857
上级 3881f9de
......@@ -883,7 +883,7 @@ static bool nvenc_encode_tex(void *data, uint32_t handle, int64_t pts,
/* subtract bframe delay from dts */
if (enc->bframes)
dts--;
dts -= packet->timebase_num;
*received_packet = true;
packet->data = enc->packet_data.array;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册