avformat/matroskaenc: Use avoid_negative_ts_use_pts if no stream writes dts
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 5 May 2015 10:57:24 +0000 (12:57 +0200)
committerJames Almer <jamrial@gmail.com>
Thu, 14 May 2015 22:52:02 +0000 (19:52 -0300)
commitd9390b9d649c8c5e6facf0be522afadb92132032
treedaf372288d5fefa0dbf04fac3c153aeb59626445
parent5a8b43285baa744d5450a4a37d98bcfb500c18fe
avformat/matroskaenc: Use avoid_negative_ts_use_pts if no stream writes dts

This reduces the number of cases where timestamps need to be shifted

Fixes Ticket4487

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 9d4fdfe24c731d1880797dee65365154b41c1dea)
libavformat/matroskaenc.c