OSDN Git Service

avformat/utils: Also fill dts==RELATIVE_TS_BASE packets in update_initial_durations()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 18 Feb 2017 23:31:09 +0000 (00:31 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 19 Feb 2017 01:07:12 +0000 (02:07 +0100)
commit3206ea4ba31ebf446a3c4f1220adb895b3272c15
tree9ac0d8fabc86a1e8e5fdce16305c4c6a83fe3c07
parent3f28caf72083231131ee35ebc81be2c4dfe95e11
avformat/utils: Also fill dts==RELATIVE_TS_BASE packets in update_initial_durations()

This dts value can end up in the list in the absence of durations and is in that
case semantically identical to AV_NOPTS_VALUE. We can alternatively prevent
storing RELATIVE_TS_BASE if there is no duration.

Fixes Ticket3640

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c