]> git.donarmstrong.com Git - samtools.git/blobdiff - bam_pileup.c
* samtools-0.1.3-8 (r251)
[samtools.git] / bam_pileup.c
index 02bdfd07c63bca1930a44a600263be2c6aa906e5..616767a932b16222c1af7bdd3c5752124ebdfb0d 100644 (file)
@@ -161,6 +161,7 @@ void bam_plbuf_destroy(bam_plbuf_t *buf)
 int bam_plbuf_push(const bam1_t *b, bam_plbuf_t *buf)
 {
        if (b) { // fill buffer
+               if (b->core.tid < 0) return 0;
                if (b->core.flag & buf->flag_mask) return 0;
                bam_copy1(&buf->tail->b, b);
                buf->tail->beg = b->core.pos; buf->tail->end = bam_calend(&b->core, bam1_cigar(b));