obs-studio/deps/libff/libff
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
..
ff-audio-decoder.c deps-libff: Add frame dropping 2015-03-19 14:40:24 -05:00
ff-callbacks.c deps-libff: Add libff library to deps 2015-03-09 21:22:32 -05:00
ff-callbacks.h deps-libff: Add extern "C" to all headers 2015-03-30 17:26:15 -05:00
ff-circular-queue.c deps-libff: Fix sequence-point warning 2015-03-23 22:28:08 -05:00
ff-circular-queue.h deps-libff: Add extern "C" to all headers 2015-03-30 17:26:15 -05:00
ff-clock.c deps-libff: Fix stack corruption 2015-07-07 15:23:23 -07:00
ff-clock.h deps-libff: Fix stack corruption 2015-07-07 15:23:23 -07:00
ff-decoder.c deps-libff: Adjust start_pts if invalid pts found 2015-08-02 15:54:35 -05:00
ff-decoder.h deps-libff: Fix starting timestamp bug 2015-07-04 22:16:22 -07:00
ff-demuxer.c deps-libff: Offset start of stream by start pts 2015-07-04 16:25:37 -07:00
ff-demuxer.h deps-libff: Add extern "C" to all headers 2015-03-30 17:26:15 -05:00
ff-frame.h deps-libff: Add extern "C" to all headers 2015-03-30 17:26:15 -05:00
ff-packet-queue.c deps-libff: Add clock chaining to packets/frames 2015-03-19 14:40:24 -05:00
ff-packet-queue.h deps-libff: Add extern "C" to all headers 2015-03-30 17:26:15 -05:00
ff-threading-posix.c deps-libff: Add atomic long inc/dec functions 2015-03-19 11:56:00 -05:00
ff-threading-windows.c deps-libff: Add atomic long inc/dec functions 2015-03-19 11:56:00 -05:00
ff-threading.h deps-libff: Add extern "C" to all headers 2015-03-30 17:26:15 -05:00
ff-timer.c deps-libff: Add proper ff_timer_init error checks 2015-03-23 22:16:39 -05:00
ff-timer.h deps-libff: Add extern "C" to all headers 2015-03-30 17:26:15 -05:00
ff-util.c deps-libff: Add extensions to format description 2015-04-26 22:29:11 -05:00
ff-util.h deps-libff: Add extensions to format description 2015-04-26 22:29:11 -05:00
ff-video-decoder.c deps-libff: Remove extra whitespace 2015-03-19 14:40:24 -05:00