Lines Matching defs:par
208 AVCodecParameters *par = s->streams[i]->codecpar;
209 if (par->codec_type == AVMEDIA_TYPE_AUDIO) {
214 if (par->codec_id == AV_CODEC_ID_MP3) {
215 swf->audio_par = par;
228 if (ff_codec_get_tag(ff_swf_codec_tags, par->codec_id) ||
229 par->codec_id == AV_CODEC_ID_PNG ||
230 par->codec_id == AV_CODEC_ID_MJPEG) {
232 swf->video_par = par;
374 AVCodecParameters *par, const uint8_t *buf, int size, unsigned pkt_flags)
378 unsigned codec_tag = ff_codec_get_tag(ff_swf_codec_tags, par->codec_id);
391 avio_wl16(pb, par->width);
392 avio_wl16(pb, par->height);
420 if (par->codec_id == AV_CODEC_ID_FLASHSV) {
427 } else if (par->codec_id == AV_CODEC_ID_MJPEG || par->codec_id == AV_CODEC_ID_PNG) {
446 if (par->codec_id == AV_CODEC_ID_MJPEG)
484 static int swf_write_audio(AVFormatContext *s, AVCodecParameters *par,
499 swf->sound_samples += av_get_audio_frame_duration2(par, size);
503 swf_write_video(s, par, 0, 0, 0);
510 AVCodecParameters *par = s->streams[pkt->stream_index]->codecpar;
511 if (par->codec_type == AVMEDIA_TYPE_AUDIO)
512 return swf_write_audio(s, par, pkt->data, pkt->size);
514 return swf_write_video(s, par, pkt->data, pkt->size, pkt->flags);