]> git.sesse.net Git - ffmpeg/commit
fftools/ffmpeg: fix for all forced key frames when 'copyts' is enabled
authorVishwanath Dixit <vdixit@akamai.com>
Sun, 6 May 2018 17:08:59 +0000 (22:38 +0530)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 4 Jun 2018 20:26:55 +0000 (22:26 +0200)
commit146cdf7e4bb029c9e457742d82d00d3b396b9ff4
treef5712781b0ddfe22e8c1d39c252166416d110fbe
parentf56a0b02cdbf8d5820de400e584a72b002cd461a
fftools/ffmpeg: fix for all forced key frames when 'copyts' is enabled

Forced key frames generation functionality was assuming the first PTS
value as zero, but, when 'copyts' is enabled, the first PTS can be any
big number. This was eventually forcing all the frames as key frames.
To resolve this issue, update has been made to use first input pts as
reference pts.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
fftools/ffmpeg.c
fftools/ffmpeg.h
fftools/ffmpeg_opt.c