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

Function parse_timecode_in_framenum_format

libavformat/mov.c:9973–9985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9971}
9972
9973static int parse_timecode_in_framenum_format(AVFormatContext *s, AVStream *st,
9974 int64_t value, int flags)
9975{
9976 AVTimecode tc;
9977 char buf[AV_TIMECODE_STR_SIZE];
9978 AVRational rate = st->avg_frame_rate;
9979 int ret = av_timecode_init(&tc, rate, flags, 0, s);
9980 if (ret < 0)
9981 return ret;
9982 av_dict_set(&st->metadata, "timecode",
9983 av_timecode_make_string(&tc, buf, value), 0);
9984 return 0;
9985}
9986
9987static int mov_read_rtmd_track(AVFormatContext *s, AVStream *st)
9988{

Callers 1

mov_read_timecode_trackFunction · 0.85

Calls 3

av_timecode_initFunction · 0.85
av_dict_setFunction · 0.85
av_timecode_make_stringFunction · 0.85

Tested by

no test coverage detected