48 end = prev !=
'\\' && (c ==
'\r' || c ==
'\n' || c ==
'\0');
52 }
while (!end && len <
sizeof(tmp));
75 }
while (!
avio_feof(s) && (bp->str[0] ==
';' || bp->str[0] ==
'#' || bp->str[0] == 0));
96 }
while (!
avio_feof(s) && (buf[0] ==
';' || buf[0] ==
'#' || buf[0] == 0));
107 if (sscanf(line,
"TIMEBASE=%d/%d", &tb.
num, &tb.
den))
109 if (!sscanf(line,
"START=%"SCNd64, &start)) {
116 if (!sscanf(line,
"END=%"SCNd64, &end)) {
133 while (p2 < buf + size) {
160 if (!(key =
unescape(line, p - line)))
162 if (!(value =
unescape(p + 1, strlen(p + 1)))) {
223 .
name =
"ffmetadata",
unsigned int nb_chapters
Number of chapters in AVChapter array.
Dummy codec for streams containing only metadata information.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
int av_bprint_finalize(AVBPrint *buf, char **ret_str)
Finalize a print buffer.
#define AV_DICT_DONT_STRDUP_KEY
Take ownership of a key that's been allocated with av_malloc() or another memory allocation function...
Opaque data information usually continuous.
static av_cold int end(AVCodecContext *avctx)
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
void av_bprint_append_data(AVBPrint *buf, const char *data, unsigned size)
Append data to a print buffer.
#define AVERROR_EOF
End of file.
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq)
Rescale a 64-bit integer by 2 rational numbers.
#define i(width, name, range_min, range_max)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
AVDictionary * metadata
Metadata that applies to the whole file.
#define AV_BPRINT_SIZE_UNLIMITED
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void av_bprint_init(AVBPrint *buf, unsigned size_init, unsigned size_max)
enum AVMediaType codec_type
General type of the encoded data.
int avio_r8(AVIOContext *s)
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
#define AV_DICT_DONT_STRDUP_VAL
Take ownership of a value that's been allocated with av_malloc() or another memory allocation functio...
int64_t end
chapter start/end time in time_base units
#define AV_TIME_BASE_Q
Internal time base represented as fractional value.
AVIOContext * pb
I/O context.
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
Rational number (pair of numerator and denominator).
int error
contains the error code or 0 if no error happened
This structure contains the data a format has to probe a file.
int64_t start_time
Position of the first frame of the component, in AV_TIME_BASE fractional seconds. ...
void av_bprint_clear(AVBPrint *buf)
Reset the string to "" but keep internal allocated data.
AVRational time_base
time base in which the start/end timestamps are specified
int64_t duration
Duration of the stream, in AV_TIME_BASE fractional seconds.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int avio_feof(AVIOContext *s)
Similar to feof() but also returns nonzero on read errors.
This structure stores compressed data.
#define AV_NOPTS_VALUE
Undefined timestamp value.