MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / bcd2uint

Function bcd2uint

libavutil/timecode_internal.c:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "timecode_internal.h"
23
24static 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
33void 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)

Callers 1

ff_timecode_set_smpteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected