summaryrefslogtreecommitdiffstats
path: root/libhb/enc_qsv.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2014-01-02 15:46:46 +0000
committerRodeo <[email protected]>2014-01-02 15:46:46 +0000
commitc6e405a1d3f44745af4439129ae3cc48a6b6ffcb (patch)
tree657c613a9f63dd4bde73ae338e6c230a02f14aaf /libhb/enc_qsv.c
parentc0fce1aeb05b413f2cc8c97698e2ff5ee6f338d9 (diff)
qsv: log occurrences of invalid DTS (i.e. DTS > PTS) in the encoder.
The muxer is not verbose enough, plus we have access to some additional info not available downstream. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5951 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/enc_qsv.c')
-rw-r--r--libhb/enc_qsv.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c
index 6f17f2b79..90bb26a57 100644
--- a/libhb/enc_qsv.c
+++ b/libhb/enc_qsv.c
@@ -1480,6 +1480,15 @@ int encqsvWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
}
}
+ // check for PTS < DTS
+ if (buf->s.start < buf->s.renderOffset)
+ {
+ hb_log("encqsvWork: PTS %"PRId64" < DTS %"PRId64" for frame %d with type '%s' (bfrm_workaround: %d)",
+ buf->s.start, buf->s.renderOffset, pv->frames_out + 1,
+ hb_qsv_frametype_name(task->bs->FrameType),
+ pv->bfrm_workaround);
+ }
+
/*
* In the MP4 container, DT(0) = STTS(0) = 0.
*