[FFmpeg-devel] [PATCH 3/4] avutil/timecode: add function av_timecode_get_smpte_by_tc_string()

Nicolas George george at nsup.org
Fri Jun 19 18:15:10 EEST 2020


lance.lmwang at gmail.com (12020-06-19):
> No, in fact I reuse the code from av_timecode_init_from_string(), any suggestion with safety?

For starters: DO NOT REUSE CODE.

Use it. Call av_timecode_init_from_string().

To test the garbage at the end of the string: ask scanf() where scanning
stopped, check it is the end of the string.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200619/7987adea/attachment.sig>


More information about the ffmpeg-devel mailing list