Lines Matching defs:st
29 AVStream *st;
31 st = avformat_new_stream(s, NULL);
32 if (!st)
35 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
36 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_G722;
37 st->codecpar->sample_rate = 16000;
38 st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
40 st->codecpar->bits_per_coded_sample =
41 av_get_bits_per_sample(st->codecpar->codec_id);
43 av_assert0(st->codecpar->bits_per_coded_sample > 0);
45 avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);