Commit 62b975ab authored by Rafaël Carré's avatar Rafaël Carré

x265: set pts at encoder input

parent a4d43caa
......@@ -73,6 +73,7 @@ static block_t *Encode(encoder_t *p_enc, picture_t *p_pict)
x265_picture_init(&p_sys->param, &pic);
if (likely(p_pict)) {
pic.pts = p_pict->date;
if (unlikely(p_sys->initial_date == 0)) {
p_sys->initial_date = p_pict->date;
#ifndef NDEBUG
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment