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

Function dump_s12m_timecode

libavformat/dump.c:429–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429static void dump_s12m_timecode(void *ctx, AVRational avg_frame_rate, const AVPacketSideData *sd,
430 int log_level)
431{
432 const uint32_t *tc = (const uint32_t *)sd->data;
433
434 if ((sd->size != sizeof(uint32_t) * 4) || (tc[0] > 3)) {
435 av_log(ctx, AV_LOG_ERROR, "invalid data\n");
436 return;
437 }
438
439 for (int j = 1; j <= tc[0]; j++) {
440 char tcbuf[AV_TIMECODE_STR_SIZE];
441 av_timecode_make_smpte_tc_string2(tcbuf, avg_frame_rate, tc[j], 0, 0);
442 av_log(ctx, log_level, "timecode - %s%s", tcbuf, j != tc[0] ? ", " : "");
443 }
444}
445
446static void dump_cropping(void *ctx, const AVPacketSideData *sd, int log_level)
447{

Callers 1

dump_sidedataFunction · 0.70

Calls 2

av_logFunction · 0.85

Tested by

no test coverage detected