Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3ef90d9d
authored
Feb 09, 2022
by
Rakesh Kumar
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fixed some of nitpick for RtpH265Reader
parent
ace363e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
libraries/exoplayer_rtsp/src/main/java/androidx/media3/exoplayer/rtsp/reader/RtpH265Reader.java
libraries/exoplayer_rtsp/src/main/java/androidx/media3/exoplayer/rtsp/reader/RtpH265Reader.java
View file @
3ef90d9d
...
...
@@ -62,7 +62,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
*/
private
static
final
int
RTP_PACKET_TYPE_FU
=
49
;
/** IDR NAL unit type. */
/** IDR NAL unit type
s
. */
private
static
final
int
NAL_IDR_W_RADL
=
19
;
private
static
final
int
NAL_IDR_N_LP
=
20
;
...
...
@@ -158,7 +158,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
*/
@RequiresNonNull
(
"trackOutput"
)
private
void
processSingleNalUnitPacket
(
ParsableByteArray
data
)
{
//
Example of a Single Nal Unit packet
//
The structure a single NAL unit packet.
// 0 1 2 3
// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
...
...
@@ -204,7 +204,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
*/
@RequiresNonNull
(
"trackOutput"
)
private
void
processFragmentationUnitPacket
(
ParsableByteArray
data
,
int
packetSequenceNumber
)
{
//
Example of a FU packet
//
The structure of an FU packet.
// 0 1 2 3
// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
...
...
@@ -246,10 +246,10 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
// Prepends starter code.
fragmentedSampleSizeBytes
+=
writeStartCode
();
// Overwrite a few bytes in Rtp buffer to get HEVC NAL
u
nit
// Overwrite a few bytes in Rtp buffer to get HEVC NAL
U
nit
// Rtp Byte 0 -> Ignore
// Rtp Byte 1 -> Byte 0 of HEVC NAL
h
eader
// Rtp Byte 2 -> Byte 1 of HEVC NAL
h
eader
// Rtp Byte 1 -> Byte 0 of HEVC NAL
H
eader
// Rtp Byte 2 -> Byte 1 of HEVC NAL
H
eader
// Rtp Payload -> HEVC NAL bytes, so leave them unchanged
// Set data position from byte 1 as byte 0 was ignored
data
.
getData
()[
1
]
=
(
byte
)
nalHeader
[
0
];
...
...
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