mpegpsenc: avoid shifting dts/pts
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Jan 2013 19:28:45 +0000 (20:28 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Jan 2013 19:58:59 +0000 (20:58 +0100)
commitfa11f368764f0e4a562d4d8e45da01132c9abf74
treee74188c91b8a344f0c00fbeb5b5bda6eb6105488
parentcf369d4449857b094e4ec91e29eaeaa7e7334bad
mpegpsenc: avoid shifting dts/pts

Only shift if needed to avoid negative scr when requested
or for dvd.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mpegenc.c
tests/ref/lavf/mpg
tests/ref/seek/lavf-mpg