Commit 1e901ffc authored by Michael Niedermayer's avatar Michael Niedermayer

wrap_timestamp: remove unneeded check

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1662bd35
......@@ -87,7 +87,7 @@ static int is_relative(int64_t ts) {
*/
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) {
if (st->pts_wrap_behavior == AV_PTS_WRAP_ADD_OFFSET &&
timestamp < st->pts_wrap_reference)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment