Lines Matching defs:par
193 AVCodecParameters *par = s->streams[stream_id]->codecpar;
194 int is_audio = par->codec_type == AVMEDIA_TYPE_AUDIO;
199 if (par->codec_type == AVMEDIA_TYPE_AUDIO) {
200 frame_size = av_get_audio_frame_duration2(par, 0);
201 if (par->codec_id == AV_CODEC_ID_VORBIS && !frame_size)
219 ft->header_idx = find_header_idx(s, par, -1, key_frame);
230 if (par->block_align > 0) {
231 frame_bytes = par->block_align;
233 int frame_size = av_get_audio_frame_duration2(par, 0);
234 frame_bytes = frame_size * (int64_t)par->bit_rate / (8 * par->sample_rate);
245 ft->header_idx = find_header_idx(s, par, frame_bytes + pred, key_frame);
259 if (par->video_delay) {
266 } else if (par->codec_id == AV_CODEC_ID_VORBIS) {
292 ft->header_idx = find_header_idx(s, par, -1, key_frame);
455 AVCodecParameters *par = st->codecpar;
458 switch (par->codec_type) {
466 if (par->codec_tag) {
467 avio_wl32(bc, par->codec_tag);
476 put_v(bc, par->video_delay);
479 put_v(bc, par->extradata_size);
480 avio_write(bc, par->extradata, par->extradata_size);
482 switch (par->codec_type) {
484 put_v(bc, par->sample_rate);
486 put_v(bc, par->ch_layout.nb_channels);
489 put_v(bc, par->width);
490 put_v(bc, par->height);