Lines Matching defs:astream
55 AVStream *astream;
64 astream = avformat_new_stream(s, NULL);
65 if (!astream)
87 astream->codec->sample_rate = avio_rl32(pb);
96 astream->codec->codec_type = AVMEDIA_TYPE_AUDIO;
97 astream->codec->codec_id = CODEC_ID_PCM_U8;
98 astream->codec->channels = 1;
99 astream->codec->bits_per_coded_sample = 8;
100 astream->codec->bit_rate =
101 astream->codec->sample_rate * astream->codec->bits_per_coded_sample;
103 avpriv_set_pts_info(astream, 64, 1, astream->codec->sample_rate);