Revision f3356e9c libavformat/utils.c

View differences:

libavformat/utils.c
821 821
                compute_pkt_fields(s, st, NULL, pkt);
822 822
                s->cur_st = NULL;
823 823
                return 0;
824
            } else if (s->cur_len > 0 && !st->discard) {
824
            } else if (s->cur_len > 0 && st->discard < AVDISCARD_ALL) {
825 825
                len = av_parser_parse(st->parser, &st->codec, &pkt->data, &pkt->size, 
826 826
                                      s->cur_ptr, s->cur_len,
827 827
                                      s->cur_pkt.pts, s->cur_pkt.dts);

Also available in: Unified diff