Lines Matching refs:audio_st
44 AVStream *video_st, *audio_st;
55 audio_st = avformat_new_stream(s, NULL);
56 if (!audio_st)
58 audio_st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
59 audio_st->codec->codec_id = AV_CODEC_ID_PCM_ALAW;
60 audio_st->codec->channels = 1;
61 audio_st->codec->channel_layout = AV_CH_LAYOUT_MONO;
62 audio_st->codec->sample_rate = 8000;
63 audio_st->codec->bits_per_coded_sample = 8;
64 audio_st->codec->block_align = 1;
65 avpriv_set_pts_info(audio_st, 64, 1, 1000000);