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

lance.lmwang at gmail.com lance.lmwang at gmail.com
Sat Jun 20 05:08:53 EEST 2020


On Fri, Jun 19, 2020 at 05:15:10PM +0200, Nicolas George wrote:
> 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().

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 at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


-- 
Thanks,
Limin Wang


More information about the ffmpeg-devel mailing list