Revision f3356e9c libavformat/flvdec.c

View differences:

libavformat/flvdec.c
105 105
        st->codec.frame_rate_base= 1;
106 106
        st->codec.frame_rate= 1000;
107 107
    }
108
    if(st->discard){
108
//    av_log(NULL, AV_LOG_DEBUG, "%d %X %d \n", is_audio, flags, st->discard);
109
    if(  (st->discard >= AVDISCARD_NONKEY && !((flags >> 4)==1 ||  is_audio))
110
       ||(st->discard >= AVDISCARD_BIDIR  &&  ((flags >> 4)==3 && !is_audio))
111
       || st->discard >= AVDISCARD_ALL
112
       ){
109 113
        url_fskip(&s->pb, size);
110 114
        continue;
111 115
    }
......
158 162
    pkt->pts = pts;
159 163
    pkt->stream_index = st->index;
160 164
    
161
    if (!is_audio && ((flags >> 4)==1))
165
    if (is_audio || ((flags >> 4)==1))
162 166
	pkt->flags |= PKT_FLAG_KEY;
163 167
    
164 168
    return ret;

Also available in: Unified diff