lavf: Don't drop both pts and dts if timestamps are invalid
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 16 Nov 2011 00:19:35 +0000 (01:19 +0100)
committerMartin Storsjö <martin@martin.st>
Sat, 11 Oct 2014 22:32:52 +0000 (01:32 +0300)
commitbd239c9a2e151c0aeeb653a571f130aae7320894
treed95ffb30ade45e2e5063ea187b4a0fe83c67ee57
parent1d4579e38ecad578c86516fad2837a273d11b320
lavf: Don't drop both pts and dts if timestamps are invalid

In these cases, only drop dts. Because if we drop both we have no
timestamps at all for some files.

This improves playback of HLS streams from GoPro cameras.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/utils.c
tests/ref/fate/vc1-ism