mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-22 23:10:00 +01:00
wrap_timestamp: remove unneeded check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -87,7 +87,7 @@ static int is_relative(int64_t ts) {
|
|||||||
*/
|
*/
|
||||||
static int64_t wrap_timestamp(AVStream *st, int64_t timestamp)
|
static int64_t wrap_timestamp(AVStream *st, int64_t timestamp)
|
||||||
{
|
{
|
||||||
if (st->pts_wrap_behavior != AV_PTS_WRAP_IGNORE && st->pts_wrap_bits < 64 &&
|
if (st->pts_wrap_behavior != AV_PTS_WRAP_IGNORE &&
|
||||||
st->pts_wrap_reference != AV_NOPTS_VALUE && timestamp != AV_NOPTS_VALUE) {
|
st->pts_wrap_reference != AV_NOPTS_VALUE && timestamp != AV_NOPTS_VALUE) {
|
||||||
if (st->pts_wrap_behavior == AV_PTS_WRAP_ADD_OFFSET &&
|
if (st->pts_wrap_behavior == AV_PTS_WRAP_ADD_OFFSET &&
|
||||||
timestamp < st->pts_wrap_reference)
|
timestamp < st->pts_wrap_reference)
|
||||||
|
|||||||
Reference in New Issue
Block a user