Go to the documentation of this file.
59 for(metadata_item =
NULL;
62 if(!metadata_item->
value[0]) {
65 while((delim = strchr(metadata_item->
value,
'\n'))) {
68 while((delim = strchr(metadata_item->
value,
'\r'))) {
72 metadata_item->
key, metadata_item->
value);
84 while (end >
line && (end[-1] ==
'\n' || end[-1] ==
'\r'))
87 while (
line[0] ==
'\n' ||
line[0] ==
'\r')
92 const uint8_t *next_line = memchr(
line,
'\n', end -
line);
97 if (next_line >
line && next_line[-1] ==
'\r')
103 "Subtitle starts with '[', may cause problems with LRC format.\n");
109 avio_printf(
s->pb,
"%02"PRIu64
":%02"PRIu64
".%02"PRIu64
"]",
125 .p.extensions =
"lrc",
#define AV_LOG_WARNING
Something somehow does not look correct.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
const FFOutputFormat ff_lrc_muxer
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static int lrc_write_packet(AVFormatContext *s, AVPacket *pkt)
const AVMetadataConv ff_lrc_metadata_conv[]
void avio_w8(AVIOContext *s, int b)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
int ff_standardize_creation_time(AVFormatContext *s)
Standardize creation_time metadata in AVFormatContext to an ISO-8601 timestamp string.
#define AV_NOPTS_VALUE
Undefined timestamp value.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
const char * avcodec_get_name(enum AVCodecID id)
Get the name of a codec.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
@ AV_CODEC_ID_TEXT
raw UTF-8 text
int avio_printf(AVIOContext *s, const char *fmt,...) av_printf_format(2
Writes a formatted string to the context.
This structure stores compressed data.
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
const AVDictionaryEntry * av_dict_iterate(const AVDictionary *m, const AVDictionaryEntry *prev)
Iterate over a dictionary.
The official guide to swscale for confused that consecutive non overlapping rectangles of slice_bottom special converter These generally are unscaled converters of common like for each output line the vertical scaler pulls lines from a ring buffer When the ring buffer does not contain the wanted line
static int lrc_write_header(AVFormatContext *s)