27 static const char *header =
"# timecode format v2\n";
38 snprintf(buf,
sizeof(buf),
"%" PRId64
"\n", pkt->
dts);
44 .
name =
"mkvtimestamp_v2",
45 .long_name =
NULL_IF_CONFIG_SMALL(
"extract pts as timecode v2 format, as defined by mkvtoolnix"),
static int write_header(AVFormatContext *s)
#define AV_LOG_WARNING
Something somehow does not look correct.
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVOutputFormat ff_mkvtimestamp_v2_muxer
AVIOContext * pb
I/O context.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
static int write_packet(AVFormatContext *s, AVPacket *pkt)
This structure stores compressed data.