Commit d578fa4c authored by Christophe Massiot's avatar Christophe Massiot

* src/dvbpsi.c: duplicate packets are legal, do not treat them as a

   discontinuity.
parent 8176eb84
......@@ -6,6 +6,7 @@ Changes between 0.1.4 and 0.1.5:
* src/tables/eit*: EIT decoder (no generator yet)
* 0x55 (dvb parental rating) descriptor decoder
* fixed a segfault in the subtitles descriptor decoder
* correctly handle duplicate packets
Changes between 0.1.3 and 0.1.4:
--------------------------------
......
......@@ -2,7 +2,7 @@
* dvbpsi.c: conversion from TS packets to PSI sections
*----------------------------------------------------------------------------
* (c)2001-2002 VideoLAN
* $Id: dvbpsi.c,v 1.4 2002/10/07 14:15:14 sam Exp $
* $Id$
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
*
......@@ -68,6 +68,14 @@ void dvbpsi_PushPacket(dvbpsi_handle h_dvbpsi, uint8_t* p_data)
i_expected_counter = (h_dvbpsi->i_continuity_counter + 1) & 0xf;
h_dvbpsi->i_continuity_counter = p_data[3] & 0xf;
if(i_expected_counter == ((h_dvbpsi->i_continuity_counter + 1) & 0xf))
{
DVBPSI_ERROR_ARG("PSI decoder",
"TS duplicate (received %d, expected %d)",
h_dvbpsi->i_continuity_counter, i_expected_counter);
return;
}
if(i_expected_counter != h_dvbpsi->i_continuity_counter)
{
DVBPSI_ERROR_ARG("PSI decoder",
......
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