| 22 | #include "timecode_internal.h" |
| 23 | |
| 24 | static unsigned bcd2uint(uint8_t bcd) |
| 25 | { |
| 26 | unsigned low = bcd & 0xf; |
| 27 | unsigned high = bcd >> 4; |
| 28 | if (low > 9 || high > 9) |
| 29 | return 0; |
| 30 | return low + 10*high; |
| 31 | } |
| 32 | |
| 33 | void ff_timecode_set_smpte(unsigned *drop, unsigned *hh, unsigned *mm, unsigned *ss, unsigned *ff, |
| 34 | AVRational rate, uint32_t tcsmpte, int prevent_df, int skip_field) |
no outgoing calls
no test coverage detected