Mercurial > libavformat.hg
changeset 4213:461f23728a14 libavformat
only write dts if they differ from pts, according to specs
author | bcoudurier |
---|---|
date | Wed, 14 Jan 2009 22:17:07 +0000 |
parents | 3aaa3da02aea |
children | 5720e5948e0b |
files | mpegtsenc.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegtsenc.c Wed Jan 14 22:14:35 2009 +0000 +++ b/mpegtsenc.c Wed Jan 14 22:17:07 2009 +0000 @@ -576,7 +576,7 @@ header_len += 5; flags |= 0x80; } - if (dts != AV_NOPTS_VALUE) { + if (dts != AV_NOPTS_VALUE && dts != pts) { header_len += 5; flags |= 0x40; } @@ -609,7 +609,7 @@ write_pts(q, flags >> 6, pts); q += 5; } - if (dts != AV_NOPTS_VALUE) { + if (dts != AV_NOPTS_VALUE && dts != pts) { write_pts(q, 1, dts); q += 5; }