mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
Offset output dts by -1 when num_out >= gop_len, otherwise there will be a gap of 2 dts. Fixes #310
This commit is contained in:
parent
54dc87dac9
commit
7918628b8e
|
@ -183,7 +183,7 @@ kvz_picture* kvz_encoder_feed_frame(input_frame_buffer_t *buf,
|
|||
dts_out = buf->pts_buffer[dts_idx % gop_buf_size] + buf->delay;
|
||||
} else {
|
||||
int dts_idx = buf->num_out - (cfg->gop_len - 1);
|
||||
dts_out = buf->pts_buffer[dts_idx % gop_buf_size];
|
||||
dts_out = buf->pts_buffer[dts_idx % gop_buf_size] - 1;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue