53 }
while (!
avio_feof(s) && (buf[0] ==
';' || buf[0] ==
'#' || buf[0] == 0));
64 if (sscanf(line,
"TIMEBASE=%d/%d", &tb.
num, &tb.
den))
66 if (!sscanf(line,
"START=%"SCNd64, &start)) {
73 if (!sscanf(line,
"END=%"SCNd64, &end)) {
90 while (p2 < buf + size) {
117 if (!(key =
unescape(line, p - line)))
119 if (!(value =
unescape(p + 1, strlen(p + 1)))) {
172 .
name =
"ffmetadata",
unsigned int nb_chapters
Number of chapters in AVChapter array.
Dummy codec for streams containing only metadata information.
#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.
#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 AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
AVDictionary * metadata
Metadata that applies to the whole file.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int avio_r8(AVIOContext *s)
AVCodecContext * codec
Codec context associated with this stream.
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...
GLsizei GLboolean const GLfloat * value
int64_t end
chapter start/end time in time_base units
enum AVMediaType codec_type
#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 numerator/denominator
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. ...
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.
int avio_feof(AVIOContext *s)
feof() equivalent for AVIOContext.
This structure stores compressed data.
#define AV_NOPTS_VALUE
Undefined timestamp value.