Lines Matching defs:ast
195 AVStream *ast = avformat_new_stream(s, NULL);
196 if (!ast)
198 ast->id = id;
199 av_channel_layout_default(&ast->codecpar->ch_layout, 1 + (info & 1));
200 ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
201 ast->codecpar->codec_id = ff_codec_get_id(swf_audio_codec_tags, info>>4 & 15);
202 ffstream(ast)->need_parsing = AVSTREAM_PARSE_FULL;
205 if (!sample_size_code && ast->codecpar->codec_id == AV_CODEC_ID_PCM_S16LE)
206 ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8;
207 ast->codecpar->sample_rate = 44100 >> (3 - sample_rate_code);
208 avpriv_set_pts_info(ast, 64, 1, ast->codecpar->sample_rate);
209 return ast;
216 AVStream *vst = NULL, *ast = NULL, *st = 0;
268 ast = create_new_audio_stream(s, -1, v); /* -1 to avoid clash with video stream ch_id */
269 if (!ast)
286 ast = create_new_audio_stream(s, ch_id, v);
287 if (!ast)
289 ast->duration = avio_rl32(pb); // number of samples
291 ffstream(ast)->skip_samples = avio_rl16(pb);
298 pkt->stream_index = ast->index;