On Fri, Jun 19, 2020 at 05:15:10PM +0200, Nicolas George wrote: > lance.lmw...@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().
No, different function, if I can use it, then I'll use it. > > To test the garbage at the end of the string: ask scanf() where scanning > stopped, check it is the end of the string. do you have a broken string for my condition, I'm glad to test and fix it? > > Regards, > > -- > Nicolas George > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe". -- Thanks, Limin Wang _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".