]> git.sesse.net Git - ffmpeg/commit
avutil/timecode: do not trash bits on invalid av_timecode_get_smpte arguments
authorMarton Balint <cus@passwd.hu>
Sat, 5 Sep 2020 15:46:42 +0000 (17:46 +0200)
committerMarton Balint <cus@passwd.hu>
Sun, 13 Sep 2020 15:51:57 +0000 (17:51 +0200)
commit535740167134ac6616344261157cf7e2a4ce8a9c
treecb8e826dd712aba4a454c7a76fa6f2ac59424f09
parentd0596e0bb0ea6536aa13090e0f920d8e532c975b
avutil/timecode: do not trash bits on invalid av_timecode_get_smpte arguments

The function has no way to return error, so let's clip or calculate modulo.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavutil/timecode.c