Searched refs:audio_stream_idx (Results 1 – 4 of 4) sorted by relevance
/third_party/ffmpeg/libavformat/ |
D | aiffenc.c | 39 int audio_stream_idx; member 107 aiff->audio_stream_idx = -1; in aiff_write_header() 110 if (aiff->audio_stream_idx < 0 && st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO) { in aiff_write_header() 111 aiff->audio_stream_idx = i; in aiff_write_header() 117 if (aiff->audio_stream_idx < 0) { in aiff_write_header() 122 par = s->streams[aiff->audio_stream_idx]->codecpar; in aiff_write_header() 200 avpriv_set_pts_info(s->streams[aiff->audio_stream_idx], 64, 1, in aiff_write_header() 201 s->streams[aiff->audio_stream_idx]->codecpar->sample_rate); in aiff_write_header() 210 if (pkt->stream_index == aiff->audio_stream_idx) in aiff_write_packet() 236 AVCodecParameters *par = s->streams[aiff->audio_stream_idx]->codecpar; in aiff_write_trailer()
|
D | flacenc.c | 39 int audio_stream_idx; member 206 c->audio_stream_idx = -1; in flac_init() 210 if (c->audio_stream_idx >= 0 || st->codecpar->codec_id != AV_CODEC_ID_FLAC) { in flac_init() 216 c->audio_stream_idx = i; in flac_init() 234 if (c->audio_stream_idx < 0) { in flac_init() 262 AVCodecParameters *par = s->streams[c->audio_stream_idx]->codecpar; in flac_write_header() 359 if (pkt->stream_index == c->audio_stream_idx) { in flac_write_packet()
|
D | mp3enc.c | 130 int audio_stream_idx; member 146 AVCodecParameters *par = s->streams[mp3->audio_stream_idx]->codecpar; in mp3_write_xing() 147 …AVDictionaryEntry *enc = av_dict_get(s->streams[mp3->audio_stream_idx]->metadata, "encoder", NULL,… in mp3_write_xing() 524 if (pkt->stream_index == mp3->audio_stream_idx) { in mp3_write_packet() 580 mp3->audio_stream_idx = -1; in mp3_init() 584 if (mp3->audio_stream_idx >= 0 || st->codecpar->codec_id != AV_CODEC_ID_MP3) { in mp3_init() 589 mp3->audio_stream_idx = i; in mp3_init() 595 if (mp3->audio_stream_idx < 0) { in mp3_init()
|
/third_party/ffmpeg/doc/examples/ |
D | demuxing_decoding.c | 52 static int video_stream_idx = -1, audio_stream_idx = -1; variable 280 if (open_codec_context(&audio_stream_idx, &audio_dec_ctx, fmt_ctx, AVMEDIA_TYPE_AUDIO) >= 0) { in main() 281 audio_stream = fmt_ctx->streams[audio_stream_idx]; in main() 324 else if (pkt->stream_index == audio_stream_idx) in main()
|