Commit 2b4e3f01 authored by Laurent Aimar's avatar Laurent Aimar

* pmt.c : fixed my last commit.

parent 2a3f1c19
......@@ -2,7 +2,7 @@
* pmt.c: PMT decoder/generator
*----------------------------------------------------------------------------
* (c)2001-2002 VideoLAN
* $Id: pmt.c,v 1.8 2003/07/25 20:20:40 fenrir Exp $
* $Id: pmt.c,v 1.9 2003/07/25 21:08:45 fenrir Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
*
......@@ -474,7 +474,7 @@ void dvbpsi_DecodePMTSections(dvbpsi_pmt_t* p_pmt,
}
/* - ESs */
for(p_byte = p_end; p_byte + 5 < p_section->p_payload_end;)
for(p_byte = p_end; p_byte + 5 <= p_section->p_payload_end;)
{
uint8_t i_type = p_byte[0];
uint16_t i_pid = ((uint16_t)(p_byte[1] & 0x1f) << 8) | p_byte[2];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment