OSDN Git Service

lavf/mkv: avoid negative ts by default.
authorClément Bœsch <clement.boesch@smartjog.com>
Wed, 10 Oct 2012 12:32:43 +0000 (14:32 +0200)
committerClément Bœsch <ubitux@gmail.com>
Mon, 15 Oct 2012 07:19:21 +0000 (09:19 +0200)
commitb08273c9ca8b91d03133f9fbef100bbd3cd8e271
tree2095bcba3e83fed042e6de5d53975740eb5abe50
parent304c37b216d77a0159651d9a6044ea9612e11762
lavf/mkv: avoid negative ts by default.

This fixes playback in some circumstances (like webm in firefox).
Regression after 2c34367b.

It is also matching the Matroska specifications:
http://matroska.org/technical/specs/notes.html, "The quick eye will
notice that if a Cluster's Timecode is set to zero, it is possible to
have Blocks with a negative Raw Timecode. Blocks with a negative Raw
Timecode are not valid."
libavformat/matroskaenc.c
tests/ref/lavf/mkv
tests/ref/seek/lavf_mkv