Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libdvbpsi
Commits
d578fa4c
Commit
d578fa4c
authored
Oct 22, 2004
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/dvbpsi.c: duplicate packets are legal, do not treat them as a
discontinuity.
parent
8176eb84
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
NEWS
NEWS
+1
-0
src/dvbpsi.c
src/dvbpsi.c
+9
-1
No files found.
NEWS
View file @
d578fa4c
...
@@ -6,6 +6,7 @@ Changes between 0.1.4 and 0.1.5:
...
@@ -6,6 +6,7 @@ Changes between 0.1.4 and 0.1.5:
* src/tables/eit*: EIT decoder (no generator yet)
* src/tables/eit*: EIT decoder (no generator yet)
* 0x55 (dvb parental rating) descriptor decoder
* 0x55 (dvb parental rating) descriptor decoder
* fixed a segfault in the subtitles descriptor decoder
* fixed a segfault in the subtitles descriptor decoder
* correctly handle duplicate packets
Changes between 0.1.3 and 0.1.4:
Changes between 0.1.3 and 0.1.4:
--------------------------------
--------------------------------
...
...
src/dvbpsi.c
View file @
d578fa4c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* dvbpsi.c: conversion from TS packets to PSI sections
* dvbpsi.c: conversion from TS packets to PSI sections
*----------------------------------------------------------------------------
*----------------------------------------------------------------------------
* (c)2001-2002 VideoLAN
* (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>
* 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)
...
@@ -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
;
i_expected_counter
=
(
h_dvbpsi
->
i_continuity_counter
+
1
)
&
0xf
;
h_dvbpsi
->
i_continuity_counter
=
p_data
[
3
]
&
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
)
if
(
i_expected_counter
!=
h_dvbpsi
->
i_continuity_counter
)
{
{
DVBPSI_ERROR_ARG
(
"PSI decoder"
,
DVBPSI_ERROR_ARG
(
"PSI decoder"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment