]> git.sesse.net Git - vlc/commit
omxil: Only use pts if it actually is set
authorMartin Storsjö <martin@martin.st>
Wed, 29 Aug 2012 21:44:42 +0000 (00:44 +0300)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 4 Sep 2012 10:03:47 +0000 (12:03 +0200)
commit1f18696f679fe520b64d60cb933fe50d3dfc3215
tree22b72e3d295941c8ee7937209da3bbc763b40b37
parentd84b8db93bce76f078f190505226924c0c4cd3cc
omxil: Only use pts if it actually is set

If we need to use pts for timestamps, but pts isn't set (the
avi demuxer seems to set it to 0 for cases where it isn't known, while
dts has a nonzero value), use dts instead.

This fixes things on OMAP4 (the only platform where b_use_pts is
set at the moment), when playing back files that have only dts,
no pts.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/omxil/omxil.c