Lines Matching defs:st_index
2747 int st_index[AVMEDIA_TYPE_NB];
2762 memset(st_index, -1, sizeof(st_index));
2859 if (type >= 0 && wanted_stream_spec[type] && st_index[type] == -1)
2861 st_index[type] = i;
2864 if (wanted_stream_spec[i] && st_index[i] == -1) {
2866 st_index[i] = INT_MAX;
2871 st_index[AVMEDIA_TYPE_VIDEO] =
2873 st_index[AVMEDIA_TYPE_VIDEO], -1, NULL, 0);
2875 st_index[AVMEDIA_TYPE_AUDIO] =
2877 st_index[AVMEDIA_TYPE_AUDIO],
2878 st_index[AVMEDIA_TYPE_VIDEO],
2881 st_index[AVMEDIA_TYPE_SUBTITLE] =
2883 st_index[AVMEDIA_TYPE_SUBTITLE],
2884 (st_index[AVMEDIA_TYPE_AUDIO] >= 0 ?
2885 st_index[AVMEDIA_TYPE_AUDIO] :
2886 st_index[AVMEDIA_TYPE_VIDEO]),
2890 if (st_index[AVMEDIA_TYPE_VIDEO] >= 0) {
2891 AVStream *st = ic->streams[st_index[AVMEDIA_TYPE_VIDEO]];
2899 if (st_index[AVMEDIA_TYPE_AUDIO] >= 0) {
2900 stream_component_open(is, st_index[AVMEDIA_TYPE_AUDIO]);
2904 if (st_index[AVMEDIA_TYPE_VIDEO] >= 0) {
2905 ret = stream_component_open(is, st_index[AVMEDIA_TYPE_VIDEO]);
2910 if (st_index[AVMEDIA_TYPE_SUBTITLE] >= 0) {
2911 stream_component_open(is, st_index[AVMEDIA_TYPE_SUBTITLE]);