Lines Matching defs:par
36 AVCodecParameters *par;
148 if (stream->par->codec_type == AVMEDIA_TYPE_AUDIO) {
184 if (stream->par->codec_type == AVMEDIA_TYPE_AUDIO) {
186 int frame_size = av_get_audio_frame_duration2(stream->par, 0);
187 sample_rate = stream->par->sample_rate;
188 coded_frame_size = (stream->par->bit_rate *
223 avio_wb32(s, stream->par->bit_rate / 8 * 60); /* bytes per minute */
224 avio_wb32(s, stream->par->bit_rate / 8 * 60); /* bytes per minute */
229 avio_wb16(s, stream->par->sample_rate); /* sample rate */
231 avio_wb16(s, stream->par->ch_layout.nb_channels);
233 if (stream->par->codec_tag) {
235 avio_wl32(s, stream->par->codec_tag);
248 if(stream->par->codec_id == AV_CODEC_ID_RV10)
252 avio_wb16(s, stream->par->width);
253 avio_wb16(s, stream->par->height);
268 if(stream->par->codec_id == AV_CODEC_ID_RV10)
318 AVCodecParameters *par;
330 par = s->streams[n]->codecpar;
334 stream->bit_rate = par->bit_rate;
335 stream->par = par;
337 switch (par->codec_type) {
340 frame_size = av_get_audio_frame_duration2(par, 0);
341 stream->frame_rate = (AVRational){par->sample_rate, frame_size};
375 if (stream->par->codec_id == AV_CODEC_ID_AC3) {