]> git.sesse.net Git - x264/commit
Improve DTS generation, move DTS compression into libx264
authorYusuke Nakamura <muken.the.vfrmaniac@gmail.com>
Wed, 27 Jan 2010 00:01:54 +0000 (16:01 -0800)
committerFiona Glaser <fiona@x264.com>
Sat, 30 Jan 2010 12:05:10 +0000 (04:05 -0800)
commitafc36d0b0ff867541827e3ff0f517df4cdf31fd6
treef565c0234fbf6aed17da0bc3309095f38f347bef
parent453c029929af2e835b7ee66acd5eb6968df72cdc
Improve DTS generation, move DTS compression into libx264
This change fixes some cases in which PTS could be less than DTS.

Additionally, a new parameter, b_dts_compress, enables DTS compression.
DTS compression eliminates negative DTS (i.e. initial delay) due to B-frames.
The algorithm changes timebase in order to avoid duplicating DTS.
Currently, in x264cli, only the FLV muxer uses it.  The MP4 muxer doesn't need it, as it uses an EditBox instead.
common/common.c
common/common.h
common/frame.c
common/frame.h
encoder/encoder.c
encoder/slicetype.c
output/flv.c
output/mp4.c
x264.c
x264.h