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

Michael Niedermayer michaelni
Tue Nov 16 05:49:22 CET 2010

On Mon, Nov 15, 2010 at 02:41:43PM +0100, Aurelien Jacobs wrote:
> 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
>  utils.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 6aa06aaa76dc46b500f2afb778b48e0b6d1bf129  sub_codec_timebase.diff
> commit 85508cbc1339ae20c640c05df1bb51030e090ba5
> Author: Aurelien Jacobs <aurel at gnuage.org>
> Date:   Fri Aug 20 21:55:41 2010 +0200
>     also compute codec time_base for AVMEDIA_TYPE_SUBTITLE


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101116/131b9e3c/attachment.pgp>

More information about the ffmpeg-devel mailing list