Lines Matching defs:st
43 AVStream *st;
45 st = avformat_new_stream(s, NULL);
46 if (!st)
49 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
56 st->codec->channels = 1;
58 st->codec->channels = 2;
64 st->codec->bits_per_coded_sample = bps = avio_rb16(s->pb);
72 st->codec->sample_rate = avio_rb24(s->pb);
78 st->codec->codec_id = ff_get_pcm_codec_id(bps, 0, 1, sign);
79 if (st->codec->codec_id == AV_CODEC_ID_NONE) {
84 st->codec->block_align = bps * st->codec->channels / 8;
86 avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate);