Lines Matching defs:st
79 AVStream *st;
132 st = avformat_new_stream(s, NULL);
133 if (!st)
135 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
136 st->codec->codec_tag = id;
137 st->codec->codec_id = codec;
138 st->codec->channels = channels;
139 st->codec->sample_rate = rate;
140 st->codec->bits_per_coded_sample = bps;
141 st->codec->bit_rate = channels * rate * bps;
142 st->codec->block_align = FFMAX(bps * st->codec->channels / 8, 1);
144 st->duration = (((int64_t)data_size)<<3) / (st->codec->channels * (int64_t)bps);
146 st->start_time = 0;
147 avpriv_set_pts_info(st, 64, 1, rate);