Only output one frame at a time
Improved tracking of buffers in use
Use QSV API 1.6 if available
Code cleanup and unsquishing, sanitized DTS handling