[FFmpeg-devel] [PATCH] set subtitle codec time_base

Aurelien Jacobs aurel
Mon Nov 15 14:41:43 CET 2010


Hi,

Attached patch ensure that av_find_stream_info() will set
codec->time_base also for subtitle tracks. The MicroDVD subtitle
decoder will use this field.
MicroDVD stores subtitle start and end display time as frame number
so they need to be rescaled according to time_base to produce
timestamps in milliseconds in resulting ASS events.

Aurel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sub_codec_timebase.diff
Type: text/x-diff
Size: 781 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101115/78dc39b5/attachment.diff>



More information about the ffmpeg-devel mailing list