summaryrefslogtreecommitdiffstats
path: root/libhb/decavcodec.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-04-09 10:33:26 -0600
committerJohn Stebbins <[email protected]>2017-04-09 10:33:26 -0600
commit3b080f5c7d5c1aa8ac80a37a8adb5db0a60b6aae (patch)
tree96e066b073c32dd086ef9f13290bbc77f28ec50a /libhb/decavcodec.c
parent44776e14258896fa651a8f7d4c8de3c94553caf2 (diff)
Fix raw video timestamps
Raw video has no timestamps. But we drop frames in sync that have no timestamps. So detect raw video and extrapolate timestamps from framerate.
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r--libhb/decavcodec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c
index e038efd6d..7b94274e1 100644
--- a/libhb/decavcodec.c
+++ b/libhb/decavcodec.c
@@ -1425,6 +1425,8 @@ static int decavcodecvInit( hb_work_object_t * w, hb_job_t * job )
pv->title = job->title;
else
pv->title = w->title;
+ if (pv->title->flags & HBTF_RAW_VIDEO)
+ pv->next_pts = 0;
hb_buffer_list_clear(&pv->list);
#ifdef USE_QSV