[FFmpeg-devel] [PATCH] asf muxer: gracefully handle negative timestamps

Vladimir Pantelic pan
Thu Mar 11 12:15:16 CET 2010


I have one asf file that when remuxed to asf with vcodec/acodec copy for
some reason has negative dts.

These negative dts end up in "sendtime" as a large integer, putting the send
time in future of the payload presentation time. This is due to the fact
that (int)asf->packet_timestamp_start is converted to (unsigned int)sendtime

Attached patch make sure that we write a sendtime of 0 in this case.

This fixes some complaints that M$ "Windows Media ASF View 9 Series" has
with the generated file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asf_fix_send_time.patch
Type: text/x-patch
Size: 907 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100311/f2c222cd/attachment.bin>



More information about the ffmpeg-devel mailing list