Lines Matching defs:st
60 AVStream *st = avformat_new_stream(s, NULL);
61 if (!st)
66 st->codec->channels = avio_r8(s->pb);
70 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
71 st->codec->codec_id = CODEC_ID_ATRAC1;
72 st->codec->sample_rate = 44100;
73 st->codec->bit_rate = 292000;
75 if (st->codec->channels != 1 && st->codec->channels != 2) {
76 av_log(s,AV_LOG_ERROR,"Channels %d not supported!\n",st->codec->channels);
80 st->codec->channel_layout = (st->codec->channels == 1) ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;
82 st->codec->block_align = AT1_SU_SIZE * st->codec->channels;