Lines Matching defs:flv
38 #include "flv.h"
304 FLVContext *flv = s->priv_data;
368 flv->validate_index[i].pos = filepositions[i];
369 flv->validate_index[i].dts = times[i] * 1000;
370 flv->validate_count = i + 1;
390 FLVContext *flv = s->priv_data;
481 } else if (flv->trust_metadata) {
615 FLVContext *flv = s->priv_data;
617 av_freep(&flv->new_extradata[i]);
629 static int flv_queue_extradata(FLVContext *flv, AVIOContext *pb, int stream,
632 av_free(flv->new_extradata[stream]);
633 flv->new_extradata[stream] = av_mallocz(size +
635 if (!flv->new_extradata[stream])
637 flv->new_extradata_size[stream] = size;
638 avio_read(pb, flv->new_extradata[stream], size);
765 FLVContext *flv = s->priv_data;
787 if (flv->validate_next < flv->validate_count) {
788 int64_t validate_pos = flv->validate_index[flv->validate_next].pos;
790 if (FFABS(dts - flv->validate_index[flv->validate_next].dts) <=
792 flv->validate_next++;
795 flv->validate_count = 0;
799 flv->validate_count = 0;
829 "Skipping flv packet: type %d, size %d, flags %d.\n",
879 if (s->pb->seekable && (!s->duration || s->duration == AV_NOPTS_VALUE) && !flv->searched_for_end) {
899 flv->searched_for_end = 1;
920 flv->last_sample_rate =
922 flv->last_channels =
944 if (!flv->wrong_dts)
947 flv->wrong_dts = 1;
958 if ((ret = flv_queue_extradata(flv, s->pb, stream_type, size)) < 0)
1004 if (flv->new_extradata[stream_type]) {
1006 flv->new_extradata_size[stream_type]);
1008 memcpy(side, flv->new_extradata[stream_type],
1009 flv->new_extradata_size[stream_type]);
1010 av_freep(&flv->new_extradata[stream_type]);
1011 flv->new_extradata_size[stream_type] = 0;
1015 (sample_rate != flv->last_sample_rate ||
1016 channels != flv->last_channels)) {
1017 flv->last_sample_rate = sample_rate;
1018 flv->last_channels = channels;
1035 FLVContext *flv = s->priv_data;
1036 flv->validate_count = 0;
1055 .name = "flv",
1063 .extensions = "flv",
1083 .extensions = "flv",