Lines Matching defs:ast
49 AVStream *ast = NULL, *vst = NULL;
84 if (ast) {
91 ast = avformat_new_stream(s, 0);
92 if (!ast)
94 ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
95 ast->codecpar->sample_rate = avio_rb16(pb);
96 ast->codecpar->bits_per_coded_sample = avio_r8(pb);
97 ast->codecpar->ch_layout.nb_channels = avio_r8(pb);
98 ast->codecpar->codec_tag = avio_rl32(pb);
99 ast->codecpar->codec_id = ff_codec_get_id(ff_codec_smjpeg_audio_tags,
100 ast->codecpar->codec_tag);
101 ast->duration = duration;
102 sc->audio_stream_index = ast->index;
103 avpriv_set_pts_info(ast, 32, 1, 1000);