Revision 4d8243d3

View differences:

ffplay.c
180 180
static int audio_disable;
181 181
static int video_disable;
182 182
static int wanted_audio_stream= 0;
183
static int wanted_video_stream= 0;
183 184
static int seek_by_bytes;
184 185
static int display_disable;
185 186
static int show_status;
......
1948 1949
                audio_index = i;
1949 1950
            break;
1950 1951
        case CODEC_TYPE_VIDEO:
1951
            if (video_index < 0 && !video_disable)
1952
            if ((video_index < 0 || wanted_video_stream-- > 0) && !video_disable)
1952 1953
                video_index = i;
1953 1954
            break;
1954 1955
        default:
......
2449 2450
    { "an", OPT_BOOL, {(void*)&audio_disable}, "disable audio" },
2450 2451
    { "vn", OPT_BOOL, {(void*)&video_disable}, "disable video" },
2451 2452
    { "ast", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&wanted_audio_stream}, "", "" },
2453
    { "vst", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&wanted_video_stream}, "", "" },
2452 2454
    { "ss", HAS_ARG, {(void*)&opt_seek}, "seek to a given position in seconds", "pos" },
2453 2455
    { "bytes", OPT_BOOL, {(void*)&seek_by_bytes}, "seek by bytes" },
2454 2456
    { "nodisp", OPT_BOOL, {(void*)&display_disable}, "disable graphical display" },

Also available in: Unified diff