Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
vlc
Commits
ab7c36a7
Commit
ab7c36a7
authored
Feb 08, 2016
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ts: add dvbpsi atsc decoders fixes
parent
42bce5b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
0 deletions
+79
-0
modules/demux/mpeg/ts_psip_dvbpsi_fixes.c
modules/demux/mpeg/ts_psip_dvbpsi_fixes.c
+55
-0
modules/demux/mpeg/ts_psip_dvbpsi_fixes.h
modules/demux/mpeg/ts_psip_dvbpsi_fixes.h
+24
-0
No files found.
modules/demux/mpeg/ts_psip_dvbpsi_fixes.c
0 → 100644
View file @
ab7c36a7
/*****************************************************************************
* ts_psip_dvbpsi_fixes.c : TS demux Broken/missing dvbpsi PSIP handling
*****************************************************************************
* Copyright (C) 2016 - VideoLAN Authors
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc_common.h>
#ifndef _DVBPSI_DVBPSI_H_
#include <dvbpsi/dvbpsi.h>
#endif
#include <dvbpsi/psi.h>
#include <dvbpsi/descriptor.h>
#include <dvbpsi/atsc_stt.h>
#include "ts_psip_dvbpsi_fixes.h"
#include "ts_psip.h"
#include "ts_decoders.h"
/* Our own STT Decoder since DVBPlague deduplicates tables for this fixed version table */
dvbpsi_atsc_stt_t
*
DVBPlague_STT_Decode
(
const
dvbpsi_psi_section_t
*
p_section
)
{
size_t
i_payload
=
p_section
->
p_payload_end
-
p_section
->
p_payload_start
;
if
(
i_payload
>=
8
)
{
dvbpsi_atsc_stt_t
*
p_stt
=
dvbpsi_atsc_NewSTT
(
ATSC_STT_TABLE_ID
,
0x00
,
0x00
,
true
);
if
(
unlikely
(
!
p_stt
))
return
NULL
;
p_stt
->
i_system_time
=
GetDWBE
(
&
p_section
->
p_payload_start
[
1
]
);
p_stt
->
i_gps_utc_offset
=
p_section
->
p_payload_start
[
5
];
p_stt
->
i_daylight_savings
=
GetWBE
(
&
p_section
->
p_payload_start
[
6
]
);
return
p_stt
;
}
return
NULL
;
}
modules/demux/mpeg/ts_psip_dvbpsi_fixes.h
0 → 100644
View file @
ab7c36a7
/*****************************************************************************
* ts_psip_dvbpsi_fixes.h : TS demux Broken/missing dvbpsi PSIP handling
*****************************************************************************
* Copyright (C) 2016 - VideoLAN Authors
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#ifndef VLC_TS_PSIP_DVBPSI_FIXES_H
#define VLC_TS_PSIP_DVBPSI_FIXES_H
dvbpsi_atsc_stt_t
*
DVBPlague_STT_Decode
(
const
dvbpsi_psi_section_t
*
p_section
);
#endif
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