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
c09ed74b
Commit
c09ed74b
authored
May 19, 2013
by
Michael Krufky
Committed by
Jean-Paul Saman
Feb 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dr_a1: remove dependency on function, dvbpsi_get_bits()
Signed-off-by:
Michael Krufky
<
mkrufky@linuxtv.org
>
parent
e0da97cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/descriptors/dr_a1.c
src/descriptors/dr_a1.c
+5
-5
No files found.
src/descriptors/dr_a1.c
View file @
c09ed74b
...
@@ -71,10 +71,10 @@ dvbpsi_service_location_dr_t * dvbpsi_DecodeServiceLocationDr(
...
@@ -71,10 +71,10 @@ dvbpsi_service_location_dr_t * dvbpsi_DecodeServiceLocationDr(
p_descriptor
->
p_decoded
=
(
void
*
)
p_decoded
;
p_descriptor
->
p_decoded
=
(
void
*
)
p_decoded
;
p_decoded
->
i_pcr_pid
=
dvbpsi_get_bits
(
buf
,
3
,
13
)
;
p_decoded
->
i_pcr_pid
=
((
uint16_t
)(
buf
[
0
]
&
0x1f
)
<<
8
)
|
buf
[
1
]
;
p_decoded
->
i_number_elements
=
dvbpsi_get_bits
(
buf
,
16
,
8
)
;
p_decoded
->
i_number_elements
=
buf
[
2
]
;
buf
=
&
p_descriptor
->
p_data
[
3
]
;
buf
+=
3
;
for
(
int
i
=
0
;
i
<
p_decoded
->
i_number_elements
;
i
++
)
for
(
int
i
=
0
;
i
<
p_decoded
->
i_number_elements
;
i
++
)
{
{
...
@@ -85,8 +85,8 @@ dvbpsi_service_location_dr_t * dvbpsi_DecodeServiceLocationDr(
...
@@ -85,8 +85,8 @@ dvbpsi_service_location_dr_t * dvbpsi_DecodeServiceLocationDr(
memset
(
p_element
,
0
,
sizeof
(
dvbpsi_service_location_element_t
));
memset
(
p_element
,
0
,
sizeof
(
dvbpsi_service_location_element_t
));
p_element
->
i_stream_type
=
dvbpsi_get_bits
(
buf
,
0
,
8
)
;
p_element
->
i_stream_type
=
buf
[
0
]
;
p_element
->
i_elementary_pid
=
dvbpsi_get_bits
(
buf
,
11
,
13
)
;
p_element
->
i_elementary_pid
=
((
uint16_t
)(
buf
[
1
]
&
0x1f
)
<<
8
)
|
buf
[
2
]
;
memcpy
(
p_element
->
i_iso_639_code
,
&
buf
[
3
],
3
);
memcpy
(
p_element
->
i_iso_639_code
,
&
buf
[
3
],
3
);
if
(
p_decoded
->
p_first_element
==
NULL
)
if
(
p_decoded
->
p_first_element
==
NULL
)
...
...
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