Lines Matching defs:flv
36 #include "flv.h"
409 FLVContext *flv = s->priv_data;
410 av_freep(&flv->new_extradata[0]);
411 av_freep(&flv->new_extradata[1]);
426 static int flv_queue_extradata(FLVContext *flv, AVIOContext *pb, int stream,
429 av_free(flv->new_extradata[stream]);
430 flv->new_extradata[stream] = av_mallocz(size + FF_INPUT_BUFFER_PADDING_SIZE);
431 if (!flv->new_extradata[stream])
433 flv->new_extradata_size[stream] = size;
434 avio_read(pb, flv->new_extradata[stream], size);
440 FLVContext *flv = s->priv_data;
478 av_log(s, AV_LOG_DEBUG, "skipping flv packet: type %d, size %d, flags %d\n", type, size, flags);
540 flv->last_sample_rate = st->codec->sample_rate;
541 flv->last_channels = st->codec->channels;
560 flv->wrong_dts = 1;
563 if (flv->wrong_dts)
568 if ((ret = flv_queue_extradata(flv, s->pb, is_audio, size)) < 0)
609 if (flv->new_extradata[is_audio]) {
611 flv->new_extradata_size[is_audio]);
613 memcpy(side, flv->new_extradata[is_audio],
614 flv->new_extradata_size[is_audio]);
615 av_freep(&flv->new_extradata[is_audio]);
616 flv->new_extradata_size[is_audio] = 0;
619 if (is_audio && (sample_rate != flv->last_sample_rate ||
620 channels != flv->last_channels)) {
621 flv->last_sample_rate = sample_rate;
622 flv->last_channels = channels;
668 .name = "flv",
679 .extensions = "flv",