Only take subtitle data into account for position() if there is nothing v2.15.10
authorCarl Hetherington <cth@carlh.net>
Sun, 7 Jul 2019 22:12:23 +0000 (23:12 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 7 Jul 2019 22:12:23 +0000 (23:12 +0100)
commitcf693669efd43c0ac565c61a074a1c7f0290921e
tree564a4705c2eaa06cb09be8b74ec9099c2ada8223
parent09063d5958cad17ce89935f38f12c4fcbaaedf4f
Only take subtitle data into account for position() if there is nothing
else to go on.  This fixes problems at the end of muxed files when subtitle
data runs out before video/audio.  There is no (easy) way to know that this has
happened, and this seems to be the next best thing.

Fixes #1581.
src/lib/decoder.cc