From: Jaroslav Kysela Date: Sat, 13 Aug 2016 06:35:17 +0000 (+0200) Subject: tsfix: don't use freed packet (regression), fixes #3930 X-Git-Tag: v4.2.1~390 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a0c876f88539ce6ac62070995c49525d8698ab8;p=thirdparty%2Ftvheadend.git tsfix: don't use freed packet (regression), fixes #3930 --- diff --git a/src/plumbing/tsfix.c b/src/plumbing/tsfix.c index 7c0f19d85..afb31e751 100644 --- a/src/plumbing/tsfix.c +++ b/src/plumbing/tsfix.c @@ -378,13 +378,13 @@ recover_pts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt) if (total < 50) { /* return packet back to tf_ptsq */ pktref_insert_head(&tf->tf_ptsq, pkt); - return; /* not arrived yet, wait */ } else { tvhtrace("tsfix", "%-12s packet drop PTS %"PRId64", DTS %"PRId64, streaming_component_type2txt(tfs->tfs_type), pkt->pkt_pts, pkt->pkt_dts); pkt_ref_dec(pkt); } + return; /* not arrived yet or invalid, wait */ } } break;