[FFmpeg-devel] [PATCH] Fixes pts->dts conversion init for non-zero initial value for pts.

Daniel Kristjansson danielk
Sun Mar 7 21:10:54 CET 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pts-to-dts-init-fix-v1.patch
Type: text/x-patch
Size: 685 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100307/c29f8279/attachment.bin>



More information about the ffmpeg-devel mailing list