From 088e84d9f354b0d0b77893dca678960c3a5b49e6 Mon Sep 17 00:00:00 2001 From: Christophe Massiot Date: Sun, 15 Aug 2010 19:12:49 +0000 Subject: [PATCH] * mpeg/psi.h: Really fix the infinite loop. --- mpeg/psi.h | 1 + 1 file changed, 1 insertion(+) diff --git a/mpeg/psi.h b/mpeg/psi.h index 8935671..6a4eb62 100644 --- a/mpeg/psi.h +++ b/mpeg/psi.h @@ -542,6 +542,7 @@ static inline uint8_t *psi_assemble_payload(uint8_t **pp_psi_buffer, if (i_section_size > PSI_PRIVATE_MAX_SIZE) { /* invalid section */ psi_assemble_reset(pp_psi_buffer, pi_psi_buffer_used); + *pi_length = 0; return NULL; } if (i_section_size <= *pi_psi_buffer_used) {