[FFmpeg-devel] [PATCH] Fix ASS subtitle duration
Martin Lambers
marlam at marlam.de
Fri Apr 8 07:10:45 CEST 2011
Hi,
the attached patch fixes ASS subtitle duration information in
libavcodec/assdec.c.
Previously, the duration was always set to zero, and this was marked
FIXME. The new time stamp parsing function is based on the get_pts
function in libavformat/assdec.c, but reads both start and end times.
A minimal test example is attached, too.
Regards,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-assdec-duration.diff
Type: text/x-patch
Size: 1407 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110408/19c00ec5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.ass
Type: text/x-ssa
Size: 564 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110408/19c00ec5/attachment-0001.bin>
More information about the ffmpeg-devel
mailing list