[FFmpeg-devel] [PATCH] Fixes pts->dts conversion init for non-zero initial value for pts.
Michael Niedermayer
michaelni
Sun Mar 7 23:12:29 CET 2010
On Sun, Mar 07, 2010 at 03:10:54PM -0500, Daniel Kristjansson wrote:
>
> When you set the pts for a stream the first packet's dts is
> calculated to be negative in utils.c:compute_pkt_fields2()
> regardless of the initial pts value. This appears to be
> because the pts value is ignored in initializing the stream's
> pts_buffer. The attached patch initializes it using the pts
> instead of assuming the initial pts is zero.
>
> -- Daniel
> utils.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 769981f51528de47769f0d5d64bbe809e6df1822 pts-to-dts-init-fix-v1.patch
should be ok
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Rewriting code that is poorly written but fully understood is good.
Rewriting code that one doesnt understand is a sign that one is less smart
then the original author, trying to rewrite it will not make it better.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100307/69771d27/attachment.pgp>
More information about the ffmpeg-devel
mailing list