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
75099163
Commit
75099163
authored
Mar 05, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use SetWBE
parent
9cbf9c3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/access/dvb/en50221.c
modules/access/dvb/en50221.c
+2
-4
No files found.
modules/access/dvb/en50221.c
View file @
75099163
...
@@ -1412,13 +1412,11 @@ static void DateTimeSend( access_t * p_access, int i_session_id )
...
@@ -1412,13 +1412,11 @@ static void DateTimeSend( access_t * p_access, int i_session_id )
#define DEC2BCD(d) (((d / 10) << 4) + (d % 10))
#define DEC2BCD(d) (((d / 10) << 4) + (d % 10))
p_response
[
0
]
=
htons
(
MJD
)
>>
8
;
SetWBE
(
&
p_response
[
0
],
MJD
);
p_response
[
1
]
=
htons
(
MJD
)
&
0xff
;
p_response
[
2
]
=
DEC2BCD
(
tm_gmt
.
tm_hour
);
p_response
[
2
]
=
DEC2BCD
(
tm_gmt
.
tm_hour
);
p_response
[
3
]
=
DEC2BCD
(
tm_gmt
.
tm_min
);
p_response
[
3
]
=
DEC2BCD
(
tm_gmt
.
tm_min
);
p_response
[
4
]
=
DEC2BCD
(
tm_gmt
.
tm_sec
);
p_response
[
4
]
=
DEC2BCD
(
tm_gmt
.
tm_sec
);
p_response
[
5
]
=
htons
(
tm_loc
.
tm_gmtoff
/
60
)
>>
8
;
SetWBE
(
&
p_response
[
5
],
tm_loc
.
tm_gmtoff
/
60
);
p_response
[
6
]
=
htons
(
tm_loc
.
tm_gmtoff
/
60
)
&
0xff
;
APDUSend
(
p_access
,
i_session_id
,
AOT_DATE_TIME
,
p_response
,
7
);
APDUSend
(
p_access
,
i_session_id
,
AOT_DATE_TIME
,
p_response
,
7
);
...
...
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