Go to the documentation of this file.
43 #define VALIDATE_INDEX_TS_THRESH 2500
45 #define RESYNC_BUFFER_SIZE (1<<20)
127 const uint8_t *d = p->
buf;
133 d[3] < 5 && d[5] == 0 &&
136 int is_live = !memcmp(d +
offset + 40,
"NGINX RTMP", 10);
156 const uint8_t *d = p->
buf;
182 if (
ffstream(stream)->nb_index_entries == 0) {
212 if (
s->nb_streams>=3 ||(
s->nb_streams==2
239 switch (codec_fourcc) {
240 case MKBETAG(
'm',
'p',
'4',
'a'):
242 case MKBETAG(
'O',
'p',
'u',
's'):
244 case MKBETAG(
'.',
'm',
'p',
'3'):
246 case MKBETAG(
'f',
'L',
'a',
'C'):
248 case MKBETAG(
'a',
'c',
'-',
'3'):
250 case MKBETAG(
'e',
'c',
'-',
'3'):
266 switch (flv_codecid) {
269 codec_id = bits_per_coded_sample == 8
278 codec_id = bits_per_coded_sample == 8
308 switch (flv_codecid) {
358 case MKBETAG(
'm',
'p',
'4',
'a'):
361 case MKBETAG(
'O',
'p',
'u',
's'):
365 case MKBETAG(
'.',
'm',
'p',
'3'):
368 case MKBETAG(
'f',
'L',
'a',
'C'):
371 case MKBETAG(
'a',
'c',
'-',
'3'):
374 case MKBETAG(
'e',
'c',
'-',
'3'):
389 switch (flv_codecid) {
391 case MKBETAG(
'h',
'v',
'c',
'1'):
393 case MKBETAG(
'a',
'v',
'0',
'1'):
395 case MKBETAG(
'v',
'p',
'0',
'9'):
408 case MKBETAG(
'a',
'v',
'c',
'1'):
416 uint32_t flv_codecid,
int read)
423 switch (flv_codecid) {
425 case MKBETAG(
'h',
'v',
'c',
'1'):
429 case MKBETAG(
'a',
'v',
'0',
'1'):
433 case MKBETAG(
'v',
'p',
'0',
'9'):
466 case MKBETAG(
'a',
'v',
'c',
'1'):
490 if (length >= buffsize) {
509 unsigned int timeslen = 0, fileposlen = 0,
i;
529 unsigned int arraylen;
541 current_array = ×
546 current_array = &filepositions;
547 fileposlen = arraylen;
554 if (!(*current_array =
av_mallocz(
sizeof(**current_array) * arraylen))) {
564 if (
isnan(d) || d < INT64_MIN || d > INT64_MAX)
568 current_array[0][
i] = d;
570 if (times && filepositions) {
578 if (timeslen == fileposlen && fileposlen>1 &&
max_pos <= filepositions[0]) {
579 for (
i = 0;
i <
FFMIN(2,fileposlen);
i++) {
588 filepositions =
NULL;
670 av_log(
s,
AV_LOG_ERROR,
"Missing AMF_END_OF_OBJECT in AMF_DATA_TYPE_MIXEDARRAY, found %d\n", v);
677 unsigned int arraylen,
i;
704 if (!strcmp(
key,
"duration"))
706 else if (!strcmp(
key,
"videodatarate") &&
707 0 <= (
int)(num_val * 1024.0))
709 else if (!strcmp(
key,
"audiodatarate") &&
710 0 <= (
int)(num_val * 1024.0))
712 else if (!strcmp(
key,
"framerate")) {
717 if (!strcmp(
key,
"videocodecid") && vpar) {
721 }
else if (!strcmp(
key,
"audiocodecid") && apar) {
724 }
else if (!strcmp(
key,
"audiosamplerate") && apar) {
726 }
else if (!strcmp(
key,
"audiosamplesize") && apar) {
728 }
else if (!strcmp(
key,
"stereo") && apar) {
730 }
else if (!strcmp(
key,
"width") && vpar) {
731 vpar->
width = num_val;
732 }
else if (!strcmp(
key,
"height") && vpar) {
734 }
else if (!strcmp(
key,
"datastream")) {
743 if (!strcmp(
key,
"encoder")) {
745 if (1 == sscanf(str_val,
"Open Broadcaster Software v0.%d", &
version)) {
749 }
else if (!strcmp(
key,
"metadatacreator")) {
750 if ( !strcmp (str_val,
"MEGA")
751 || !strncmp(str_val,
"FlixEngine", 10))
759 if (!strcmp(
key,
"colorPrimaries")) {
761 }
else if (!strcmp(
key,
"transferCharacteristics")) {
762 meta_video_color->
trc = num_val;
763 }
else if (!strcmp(
key,
"matrixCoefficients")) {
765 }
else if (!strcmp(
key,
"maxFall")) {
766 meta_video_color->
max_fall = num_val;
767 }
else if (!strcmp(
key,
"maxCLL")) {
768 meta_video_color->
max_cll = num_val;
769 }
else if (!strcmp(
key,
"redX")) {
771 }
else if (!strcmp(
key,
"redY")) {
773 }
else if (!strcmp(
key,
"greenX")) {
775 }
else if (!strcmp(
key,
"greenY")) {
777 }
else if (!strcmp(
key,
"blueX")) {
779 }
else if (!strcmp(
key,
"blueY")) {
781 }
else if (!strcmp(
key,
"whitePointX")) {
783 }
else if (!strcmp(
key,
"whitePointY")) {
785 }
else if (!strcmp(
key,
"maxLuminance")) {
787 }
else if (!strcmp(
key,
"minLuminance")) {
793 ((!apar && !strcmp(
key,
"audiocodecid")) ||
794 (!vpar && !strcmp(
key,
"videocodecid"))))
797 if ((!strcmp(
key,
"duration") ||
798 !strcmp(
key,
"filesize") ||
799 !strcmp(
key,
"width") ||
800 !strcmp(
key,
"height") ||
801 !strcmp(
key,
"videodatarate") ||
802 !strcmp(
key,
"framerate") ||
803 !strcmp(
key,
"videocodecid") ||
804 !strcmp(
key,
"audiodatarate") ||
805 !strcmp(
key,
"audiosamplerate") ||
806 !strcmp(
key,
"audiosamplesize") ||
807 !strcmp(
key,
"stereo") ||
808 !strcmp(
key,
"audiocodecid") ||
814 av_strlcpy(str_val, num_val > 0 ?
"true" :
"false",
818 snprintf(str_val,
sizeof(str_val),
"%.f", num_val);
836 #define TYPE_ONTEXTDATA 1
837 #define TYPE_ONCAPTION 2
838 #define TYPE_ONCAPTIONINFO 3
839 #define TYPE_UNKNOWN 9
845 AVStream *stream, *astream, *vstream;
862 if (!strcmp(
buffer,
"onTextData"))
865 if (!strcmp(
buffer,
"onCaption"))
868 if (!strcmp(
buffer,
"onCaptionInfo"))
871 if (strcmp(
buffer,
"onMetaData") && strcmp(
buffer,
"onCuePoint") && strcmp(
buffer,
"|RtmpSampleAccess")) {
878 for (
i = 0;
i <
s->nb_streams;
i++) {
879 stream =
s->streams[
i];
904 int pre_tag_size = 0;
907 if(!strcmp(
s->iformat->name,
"kux"))
927 av_log(
s,
AV_LOG_WARNING,
"Read FLV header error, input file is not a standard flv format, first PreviousTagSize0 always is 0\n");
965 int size,
int multitrack)
979 int new_count = stream + 1;
1016 "Found invalid index entries, clearing the index.\n");
1017 for (
unsigned i = 0;
i <
s->nb_streams;
i++) {
1030 int nb = -1,
ret, parse_name = 1;
1118 for (
i = 0;
i <
s->nb_streams;
i++) {
1124 if (
i ==
s->nb_streams) {
1156 if (
i >= 8 &&
pos) {
1161 d[3] < 5 && d[5] == 0) {
1175 if (size1 == lsize1 - 11 && size2 == lsize2 - 11) {
1206 if (strcmp(
buffer,
"colorInfo") != 0) {
1229 int has_mastering_primaries, has_mastering_luminance;
1231 has_mastering_primaries =
1232 mastering_meta->
r_x > 0 && mastering_meta->
r_y > 0 &&
1233 mastering_meta->
g_x > 0 && mastering_meta->
g_y > 0 &&
1234 mastering_meta->
b_x > 0 && mastering_meta->
b_y > 0 &&
1261 if (has_mastering_primaries || has_mastering_luminance) {
1279 if (has_mastering_luminance) {
1285 if (has_mastering_primaries) {
1305 int ex_size = (uint8_t)
avio_r8(
s->pb) + 1;
1308 if (ex_size == 256) {
1313 if (ex_size >= *
size) {
1332 *pkt_type = ex_type & 0x0f;
1336 uint32_t nano_offset;
1342 nano_offset = (ex_data[0] << 16) | (ex_data[1] << 8) | ex_data[2];
1346 *dts += nano_offset / 1000000;
1362 int stream_type = -1;
1370 int enhanced_flv = 0;
1373 uint8_t track_idx = 0;
1385 dts |= (unsigned)
avio_r8(
s->pb) << 24;
1386 av_log(
s,
AV_LOG_TRACE,
"type:%d, size:%d, last:%d, dts:%"PRId64
" pos:%"PRId64
"\n",
type,
size, last, dts,
avio_tell(
s->pb));
1394 if (
pos == validate_pos) {
1402 }
else if (
pos > validate_pos) {
1432 multitrack_type = types & 0xF0;
1433 pkt_type = types & 0xF;
1455 enhanced_flv = (
flags >> 7) & 1;
1456 pkt_type = enhanced_flv ?
codec_id : 0;
1471 multitrack_type = types & 0xF0;
1472 pkt_type = types & 0xF;
1499 if (
size > 13 + 1 + 4) {
1503 if (
type == 0 && dts == 0 ||
type < 0) {
1504 if (type < 0 && flv->validate_count &&
1523 "Skipping flv packet: type %d, size %d, flags %d.\n",
1526 if (
avio_seek(
s->pb, next, SEEK_SET) != next) {
1544 int track_size =
size;
1552 for (
i = 0;
i <
s->nb_streams;
i++) {
1557 st->
id == track_idx)
1562 st->
id == track_idx)
1572 if (
i ==
s->nb_streams) {
1610 if (final_size > 0 && final_size <
fsize) {
1616 ts |= (unsigned)
avio_r8(
s->pb) << 24;
1619 else if (
fsize >= 8 &&
fsize - 8 >= final_size) {
1620 fsize -= final_size+4;
1621 goto retry_duration;
1631 int bits_per_coded_sample;
1672 int channel_order =
avio_r8(
s->pb);
1691 else if (
id >= 18 &&
id <= 23)
1693 else if (
id == 0xFE)
1745 if (
size < 0 || track_size < 0) {
1765 "Negative cts, previous timestamps might be wrong.\n");
1767 }
else if (
FFABS(dts -
pts) > 1000*60*15) {
1769 "invalid timestamps %"PRId64
" %"PRId64
"\n", dts,
pts);
1782 if ((
ret =
flv_queue_extradata(flv,
s->pb, multitrack ? track_idx : stream_type, track_size, multitrack)) < 0)
1801 if (
size <= 0 || track_size < 0) {
1830 }
else if (multitrack &&
1896 if (last != orig_size + 11 && last != orig_size + 10 &&
1924 #define OFFSET(x) offsetof(FLVContext, x)
1925 #define VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM
1927 {
"flv_metadata",
"Allocate streams according to the onMetaData array",
OFFSET(trust_metadata),
AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1,
VD },
1928 {
"flv_full_metadata",
"Dump full metadata of the onMetadata",
OFFSET(dump_full_metadata),
AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1,
VD },
1929 {
"flv_ignore_prevtag",
"Ignore the Size of previous tag",
OFFSET(trust_datasize),
AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1,
VD },
1943 .p.extensions =
"flv",
1954 .
p.
name =
"live_flv",
1956 .p.extensions =
"flv",
1970 .p.extensions =
"kux",
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
@ AMF_DATA_TYPE_OBJECT_END
#define AMF_END_OF_OBJECT
#define AV_LOG_WARNING
Something somehow does not look correct.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
@ FLV_STREAM_TYPE_SUBTITLE
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
enum AVMediaType codec_type
General type of the encoded data.
AVColorTransferCharacteristic
Color Transfer Characteristic.
@ FLV_CODECID_NELLYMOSER_8KHZ_MONO
This struct describes the properties of an encoded stream.
enum AVColorSpace color_space
AVStream * avformat_new_stream(AVFormatContext *s, const struct AVCodec *c)
Add a new stream to a media file.
@ AV_PKT_DATA_NEW_EXTRADATA
The AV_PKT_DATA_NEW_EXTRADATA is used to notify the codec or the format that the extradata buffer was...
#define AVERROR_EOF
End of file.
enum AVDiscard discard
Selects which packets can be discarded at will and do not need to be demuxed.
@ AudioChannelOrderNative
@ AV_PKT_DATA_MASTERING_DISPLAY_METADATA
Mastering display metadata (based on SMPTE-2086:2014).
static av_always_inline double av_int2double(uint64_t i)
Reinterpret a 64-bit integer as a double.
FLVMetaVideoColor meta_color_info
AVChannelCustom * map
This member must be used when the channel order is AV_CHANNEL_ORDER_CUSTOM.
int ff_buffer_packet(AVFormatContext *s, AVPacket *pkt)
unsigned MaxCLL
Max content light level (cd/m^2).
@ FLV_HEADER_FLAG_HASVIDEO
int trust_metadata
configure streams according onMetaData
This structure stores auxiliary information for decoding, presenting, or otherwise processing the cod...
AVRational avg_frame_rate
Average framerate.
uint8_t resync_buffer[2 *RESYNC_BUFFER_SIZE]
@ AMF_DATA_TYPE_UNDEFINED
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
int buf_size
Size of buf except extra allocated bytes.
AVColorPrimaries
Chromaticity coordinates of the source primaries.
@ FLV_CODECID_NELLYMOSER_16KHZ_MONO
int trust_datasize
trust data size of FLVTag
int nb_channels
Number of channels in this layout.
enum AVMediaType codec_type
int64_t avio_size(AVIOContext *s)
Get the filesize.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
int ff_get_extradata(void *logctx, AVCodecParameters *par, AVIOContext *pb, int size)
Allocate extradata with additional AV_INPUT_BUFFER_PADDING_SIZE at end which is always set to 0 and f...
Content light level needed by to transmit HDR over HDMI (CTA-861.3).
enum AVColorPrimaries color_primaries
@ FLV_FRAME_DISP_INTER
disposable inter frame (H.263 only)
@ AVCOL_SPC_RESERVED
reserved for future use by ITU-T and ISO/IEC just like 15-255 are
int64_t * keyframe_filepositions
int av_packet_add_side_data(AVPacket *pkt, enum AVPacketSideDataType type, uint8_t *data, size_t size)
Wrap an existing array as a packet side data.
int64_t avio_seek_time(AVIOContext *h, int stream_index, int64_t timestamp, int flags)
Seek to a given timestamp relative to some component stream.
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
int av_add_index_entry(AVStream *st, int64_t pos, int64_t timestamp, int size, int distance, int flags)
Add an index entry into a sorted list.
static av_cold int read_close(AVFormatContext *ctx)
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf type
@ AV_CODEC_ID_MP3
preferred ID for decoding MPEG audio layer 1, 2 or 3
#define FLV_AUDIO_CODECID_OFFSET
enum AVColorTransferCharacteristic color_trc
unsigned int avio_rb32(AVIOContext *s)
#define AV_LOG_TRACE
Extremely verbose debugging, useful for libav* development.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
AVDictionaryEntry * av_dict_get(const AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
@ AudioPacketTypeMultitrack
int new_extradata_size[FLV_STREAM_TYPE_NB]
@ AMF_DATA_TYPE_UNSUPPORTED
void * av_realloc_array(void *ptr, size_t nmemb, size_t size)
@ AV_CHAN_UNKNOWN
Channel contains data, but its position is unknown.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
int av_channel_layout_from_mask(AVChannelLayout *channel_layout, uint64_t mask)
Initialize a native channel layout from a bitmask indicating which channels are present.
#define av_assert0(cond)
assert() equivalent, that is always enabled.
#define FLV_AUDIO_CHANNEL_MASK
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
#define KEYFRAMES_TIMESTAMP_TAG
int nb_coded_side_data
Amount of entries in coded_side_data.
@ AVMEDIA_TYPE_DATA
Opaque data information usually continuous.
@ FLV_FRAME_VIDEO_INFO_CMD
video info/command frame
#define FLV_VIDEO_FRAMETYPE_MASK
static int64_t fsize(FILE *f)
@ AVDISCARD_BIDIR
discard all bidirectional frames
#define FFABS(a)
Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they are not representable ...
enum AVStreamParseType need_parsing
@ AVDISCARD_ALL
discard all
AVCodecParameters * codecpar
Codec parameters associated with this stream.
#define LIBAVUTIL_VERSION_INT
Describe the class of an AVClass context structure.
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
void avcodec_parameters_free(AVCodecParameters **ppar)
Free an AVCodecParameters instance and everything associated with it and write NULL to the supplied p...
Rational number (pair of numerator and denominator).
const char * av_default_item_name(void *ptr)
Return the context name.
uint64_t avio_rb64(AVIOContext *s)
This structure contains the data a format has to probe a file.
AVChannelLayout ch_layout
Audio only.
@ AV_PKT_DATA_CONTENT_LIGHT_LEVEL
Content light level (based on CTA-861.3).
int sample_rate
Audio only.
AVCodecID
Identify the syntax and semantics of the bitstream.
int extradata_size
Size of the extradata content in bytes.
@ AVDISCARD_NONKEY
discard all frames except keyframes
unsigned int avio_rb24(AVIOContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define KEYFRAMES_BYTEOFFSET_TAG
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
int ff_add_param_change(AVPacket *pkt, int32_t channels, uint64_t channel_layout, int32_t sample_rate, int32_t width, int32_t height)
Add side data to a packet for changing parameters to the given values.
#define AV_NOPTS_VALUE
Undefined timestamp value.
#define MKBETAG(a, b, c, d)
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_RB32
@ AudioPacketTypeMultichannelConfig
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed.
int avio_r8(AVIOContext *s)
AVPacketSideData * av_packet_side_data_add(AVPacketSideData **psd, int *pnb_sd, enum AVPacketSideDataType type, void *data, size_t size, int flags)
Wrap existing data as packet side data.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf offset
int flags
A combination of AV_PKT_FLAG values.
static int read_header(FFV1Context *f, RangeCoder *c)
@ AV_CHAN_UNUSED
Channel is empty can be safely skipped.
#define AV_LOG_INFO
Standard information.
#define FFERROR_REDO
Returned by demuxers to indicate that data was consumed but discarded (ignored streams or junk data).
int av_channel_layout_custom_init(AVChannelLayout *channel_layout, int nb_channels)
Initialize a custom channel layout with the specified number of channels.
void av_channel_layout_default(AVChannelLayout *ch_layout, int nb_channels)
Get the default channel layout for a given number of channels.
AVCodecParameters * avcodec_parameters_alloc(void)
Allocate a new AVCodecParameters and set its fields to default values (unknown/invalid/0).
#define i(width, name, range_min, range_max)
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
int last_keyframe_stream_index
@ FLV_HEADER_FLAG_HASAUDIO
#define AV_TIME_BASE
Internal time base represented as integer.
AVColorSpace
YUV colorspace type.
enum FLVMetaColorInfoFlag meta_color_info_flag
AVRational av_d2q(double d, int max)
Convert a double precision floating point number to a rational.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
#define FLV_AUDIO_SAMPLERATE_OFFSET
int wrong_dts
wrong dts due to negative cts
AVPacketSideData * coded_side_data
Additional data associated with the entire stream.
@ AMF_DATA_TYPE_MIXEDARRAY
uint8_t * new_extradata[FLV_STREAM_TYPE_NB]
static int array[MAX_W *MAX_W]
int id
Format-specific stream ID.
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
unsigned int avio_rb16(AVIOContext *s)
int av_channel_layout_check(const AVChannelLayout *channel_layout)
Check whether a channel layout is valid, i.e.
@ AV_CODEC_ID_TEXT
raw UTF-8 text
#define AV_INPUT_BUFFER_PADDING_SIZE
@ AudioChannelOrderCustom
int index
stream index in AVFormatContext
@ AV_CHAN_LOW_FREQUENCY_2
#define AVIO_SEEKABLE_NORMAL
Seeking works like for a local file.
the frame and frame reference mechanism is intended to as much as expensive copies of that data while still allowing the filters to produce correct results The data is stored in buffers represented by AVFrame structures Several references can point to the same frame buffer
void av_channel_layout_uninit(AVChannelLayout *channel_layout)
Free any allocated data in the channel layout and reset the channel count to 0.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
int eof_reached
true if was unable to read due to error or eof
struct FLVContext::@392 validate_index[2]
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
static const int factor[16]
AVIndexEntry * index_entries
Only used if the format does not support seeking natively.
static int read_probe(const AVProbeData *p)
int bits_per_coded_sample
The number of bits per sample in the codedwords.
@ MultitrackTypeManyTracksManyCodecs
#define avpriv_request_sample(...)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
unsigned MaxFALL
Max average light level per frame (cd/m^2).
This structure stores compressed data.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
#define FLV_AUDIO_CODECID_MASK
int64_t pos
byte position in stream, -1 if unknown
#define FLV_AUDIO_SAMPLERATE_MASK
#define FLV_VIDEO_CODECID_MASK
union AVChannelLayout::@434 u
Details about which channels are present in this layout.
int need_context_update
Whether the internal avctx needs to be updated from codecpar (after a late change to codecpar)
#define flags(name, subs,...)
#define AVERROR_BUG
Internal bug, also see AVERROR_BUG2.
size_t av_strlcpy(char *dst, const char *src, size_t size)
Copy the string src to dst, but no more than size - 1 bytes, and null-terminate dst.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define FLV_AUDIO_SAMPLESIZE_MASK
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_RB24
@ PacketModExTypeTimestampOffsetNano
int dump_full_metadata
Dump full metadata of the onMetadata.
int avpriv_dict_set_timestamp(AVDictionary **dict, const char *key, int64_t timestamp)
Set a dictionary value to an ISO-8601 compliant timestamp string.
static void BS_FUNC() skip(BSCTX *bc, unsigned int n)
Skip n bits in the buffer.
@ FLV_FRAME_KEY
key frame (for AVC, a seekable frame)
static const int32_t max_pos[4]
Size of the MP-MLQ fixed excitation codebooks.
static uint32_t BS_FUNC() read(BSCTX *bc, unsigned int n)
Return n bits from the buffer, n has to be in the 0-32 range.
int avio_feof(AVIOContext *s)
Similar to feof() but also returns nonzero on read errors.