Revision f3356e9c libavformat/asf.c

View differences:

libavformat/asf.c
545 545
	    asf->packet_size_left -= rsize;
546 546
	    //printf("___objsize____  %d   %d    rs:%d\n", asf->packet_obj_size, asf->packet_frag_offset, rsize);
547 547

  
548
	    if (asf->stream_index < 0 || s->streams[asf->stream_index]->discard) {
548
	    if (asf->stream_index < 0
549
                || s->streams[asf->stream_index]->discard >= AVDISCARD_ALL
550
                || (!asf->packet_key_frame && s->streams[asf->stream_index]->discard >= AVDISCARD_NONKEY)
551
                ) {
549 552
                asf->packet_time_start = 0;
550 553
		/* unhandled packet (should not happen) */
551 554
		url_fskip(pb, asf->packet_frag_size);

Also available in: Unified diff