Revision 3f3fe38d

View differences:

ffplay.c
1773 1773
    if(thread_count>1)
1774 1774
        avcodec_thread_init(enc, thread_count);
1775 1775
    enc->thread_count= thread_count;
1776
    ic->streams[stream_index]->discard = AVDISCARD_DEFAULT;
1776 1777
    switch(enc->codec_type) {
1777 1778
    case CODEC_TYPE_AUDIO:
1778 1779
        is->audio_stream = stream_index;
......
1869 1870
        break;
1870 1871
    }
1871 1872

  
1873
    ic->streams[stream_index]->discard = AVDISCARD_ALL;
1872 1874
    avcodec_close(enc);
1873 1875
    switch(enc->codec_type) {
1874 1876
    case CODEC_TYPE_AUDIO:
......
1979 1981

  
1980 1982
    for(i = 0; i < ic->nb_streams; i++) {
1981 1983
        AVCodecContext *enc = ic->streams[i]->codec;
1984
        ic->streams[i]->discard = AVDISCARD_ALL;
1982 1985
        switch(enc->codec_type) {
1983 1986
        case CODEC_TYPE_AUDIO:
1984 1987
            if ((audio_index < 0 || wanted_audio_stream-- > 0) && !audio_disable)

Also available in: Unified diff