[FFmpeg-devel] [PATCH 3/3] ffmpeg: ensure that -fix_sub_duration doesnt create subtitles with zero duration

Nicolas George george at nsup.org
Mon Nov 25 14:48:46 CET 2013


Le tridi 3 frimaire, an CCXXII, Marton Balint a écrit :
> Yes, it is on purpose. As w4m pointed out in response to my earlier patch:
> 
> https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2013-November/thread.html#151037
> 
> 0 duration can also mean unknown (infinite) duration depending on
> the codecs used, so it would be wrong to drop them all.
> 
> However, when fix_sub_duration is used, and the duration fixing code
> is generating 0 duration, that is definitely zero, and not undefined
> or infinite, so it is safe to drop it.

Thanks for explaining. I suppose this patch is ok, then.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131125/a2165d87/attachment.asc>


More information about the ffmpeg-devel mailing list