obs-studio/deps
kc5nra ff0c58e963 deps-libff: Adjust start_pts if invalid pts found
If the first guessed pts is less than the start_pts, it could
lead to a negative PTS being returned.

Change the behavior so that the first frame's pts, if zero, is
set to the start_pts.  If more than one frame is less than the
start_pts, the start_pts is determined invalid and set to 0.

Valid start_pts example:
  start_pts = 500

  first frame (pts = 0)
    pts = 500 (< start_pts)
    pts -= 500 (offset by start_pts)

    ret 0

  second frame (pts = 700)
    pts = 700 (no change, > start_pts)
    pts -= 500 (offset by start_pts)

    ret 200

Invalid start_pts example:
  start_pts = 500

  first frame (pts = 0)
    pts = 500 (< start_pts)
    pts -= 500 (offset by start_pts)

    ret 0
  second frame (pts = 300)
    pts = 300 (< start_pts, start_pts set to 0)
    pts -= 0 (start_pts is now 0)

    ret 300
2015-08-02 15:54:35 -05:00
..
glad deps-glad: Only link to libdl on Linux 2015-05-03 14:38:24 +02:00
ipc-util ipc-util: Fix access rights issue with IPC pipe 2015-07-05 15:17:08 -07:00
jansson Merge pull request #424 from fryshorts/bsd-build-fixes 2015-05-05 04:46:16 -07:00
libff deps-libff: Adjust start_pts if invalid pts found 2015-08-02 15:54:35 -05:00
w32-pthreads deps-w32-pthreads: Update FSF address 2015-07-11 09:10:27 -07:00
CMakeLists.txt deps-libff: Add libff library to deps 2015-03-09 21:22:32 -05:00