x264enc: Shift both PTS and DTS to ensure positive timestamp
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sat, 7 Jun 2014 00:23:15 +0000 (20:23 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sat, 19 Jul 2014 16:59:05 +0000 (12:59 -0400)
commit698714fc9781c614ea5d65744508d5db73f16066
tree7ab9cfa57c799fbcb564da62c96cf716f9ffca43
parentcaee6eb21d8ee5eb50600f373809c737fab7dbec
x264enc: Shift both PTS and DTS to ensure positive timestamp

Currently we only shift DTS to compensate that we don't support negative
timestamp. This cause a problem that PTS is no longer >= DTS and may
make muxers live much harder. Instead, shift both PTS/DTS forward. Also
remove all the hack to handle this which seems the result of thinking libx264
is bugged.

https://bugzilla.gnome.org/show_bug.cgi?id=731351
ext/x264/gstx264enc.c
ext/x264/gstx264enc.h