Re: [FFmpeg-devel] [PATCH 3/8] avutil/timecode: do not trash bits on invalid av_timecode_get_smpte arguments

2020-09-06 Thread lance . lmwang
On Sat, Sep 05, 2020 at 08:22:12PM +0200, Marton Balint wrote: > The function has no way to return error, so let's clip or calculate modulo. > > Signed-off-by: Marton Balint > --- > libavutil/timecode.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/libavutil/timecode.c

[FFmpeg-devel] [PATCH 3/8] avutil/timecode: do not trash bits on invalid av_timecode_get_smpte arguments

2020-09-05 Thread Marton Balint
The function has no way to return error, so let's clip or calculate modulo. Signed-off-by: Marton Balint --- libavutil/timecode.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavutil/timecode.c b/libavutil/timecode.c index c0956adadb..806638ddfc 100644 --- a/libavutil/timecode.c