Revision be732b70 ffplay.c

View differences:

ffplay.c
2466 2466

  
2467 2467
    for (i = 0; i < ic->nb_streams; i++)
2468 2468
        ic->streams[i]->discard = AVDISCARD_ALL;
2469
    if (!audio_disable)
2469
    if (!video_disable)
2470 2470
        st_index[AVMEDIA_TYPE_VIDEO] =
2471 2471
            av_find_best_stream(ic, AVMEDIA_TYPE_VIDEO,
2472 2472
                                wanted_stream[AVMEDIA_TYPE_VIDEO], -1, NULL, 0);
2473
    if (!video_disable) {
2473
    if (!audio_disable)
2474 2474
        st_index[AVMEDIA_TYPE_AUDIO] =
2475 2475
            av_find_best_stream(ic, AVMEDIA_TYPE_AUDIO,
2476 2476
                                wanted_stream[AVMEDIA_TYPE_AUDIO],
2477 2477
                                st_index[AVMEDIA_TYPE_VIDEO],
2478 2478
                                NULL, 0);
2479
    if (!video_disable)
2479 2480
        st_index[AVMEDIA_TYPE_SUBTITLE] =
2480 2481
            av_find_best_stream(ic, AVMEDIA_TYPE_SUBTITLE,
2481 2482
                                wanted_stream[AVMEDIA_TYPE_SUBTITLE],
......
2483 2484
                                 st_index[AVMEDIA_TYPE_AUDIO] :
2484 2485
                                 st_index[AVMEDIA_TYPE_VIDEO]),
2485 2486
                                NULL, 0);
2486
    }
2487 2487
    if (show_status) {
2488 2488
        dump_format(ic, 0, is->filename, 0);
2489 2489
    }

Also available in: Unified diff