QSV: decavcodec: work around out-of-order timestamps.

When we feed an incomplete H.264 frame (e.g. a slice) to the QSV decoder, it will mess up timestamps, resulting in out-of-order timestamps, and unnecessary frame drops in sync.c.

This patch works around the issue by saving timestamps and restoring them in chronological order.



git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/qsv@5650 b64f7644-9d1e-0410-96f1-a4d463321fa5
QSV: fix for Render/Burn-in subtitles

git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/qsv@5651 b64f7644-9d1e-0410-96f1-a4d463321fa5
QSV: support of MSDK 2013 R2/API 1.7 release and new features, RB541

git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/qsv@5658 b64f7644-9d1e-0410-96f1-a4d463321fa5
QSV: cleanup keyframe interval code.

Intervals are unchanged from previous patch (32 for CQP, 5*fps+1 otherwise).



git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/qsv@5659 b64f7644-9d1e-0410-96f1-a4d463321fa5
QSV: support API 1.3.

We don't need anything 1.4-specific yet, and some OEMs' "latest" drivers for Sandy Bridge are still on API 1.3, so this should improve Sandy Bridge support.



git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/qsv@5660 b64f7644-9d1e-0410-96f1-a4d463321fa5