Lines Matching defs:astream
56 AVStream *astream;
65 astream = avformat_new_stream(s, NULL);
66 if (!astream)
90 astream->codec->sample_rate = avio_rl32(pb);
101 astream->codec->codec_type = AVMEDIA_TYPE_AUDIO;
102 astream->codec->codec_id = AV_CODEC_ID_PCM_U8;
103 astream->codec->channels = 1;
104 astream->codec->channel_layout = AV_CH_LAYOUT_MONO;
105 astream->codec->bits_per_coded_sample = 8;
106 astream->codec->bit_rate =
107 astream->codec->sample_rate * astream->codec->bits_per_coded_sample;
109 avpriv_set_pts_info(astream, 64, 1, astream->codec->sample_rate);