Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libjitsi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZRTP
libjitsi
Commits
5f4abf05
Commit
5f4abf05
authored
9 years ago
by
George Politis
Browse files
Options
Downloads
Patches
Plain Diff
Extends the FMJ RTP packet parser.
parent
4ccc515b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/org/jitsi/impl/neomedia/rtp/RTPPacketParserEx.java
+45
-0
45 additions, 0 deletions
src/org/jitsi/impl/neomedia/rtp/RTPPacketParserEx.java
with
45 additions
and
0 deletions
src/org/jitsi/impl/neomedia/rtp/RTPPacketParserEx.java
0 → 100644
+
45
−
0
View file @
5f4abf05
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package
org.jitsi.impl.neomedia.rtp
;
import
net.sf.fmj.media.rtp.util.*
;
import
org.jitsi.impl.neomedia.*
;
import
org.jitsi.util.*
;
/**
* Extends the FMJ <tt>RTPPacketParser</tt> with additional functionality.
*
* @author George Politis
*/
public
class
RTPPacketParserEx
extends
net
.
sf
.
fmj
.
media
.
rtp
.
util
.
RTPPacketParser
{
private
static
final
Logger
logger
=
Logger
.
getLogger
(
RTPPacketParserEx
.
class
);
public
RTPPacket
parse
(
RawPacket
pkt
)
throws
BadFormatException
{
if
(
pkt
==
null
)
{
logger
.
warn
(
"pkt is null."
);
return
null
;
}
return
parse
(
pkt
.
getBuffer
(),
pkt
.
getOffset
(),
pkt
.
getLength
());
}
public
RTPPacket
parse
(
byte
[]
data
,
int
offset
,
int
length
)
throws
BadFormatException
{
UDPPacket
udp
=
new
UDPPacket
();
udp
.
data
=
data
;
udp
.
length
=
length
;
udp
.
offset
=
offset
;
udp
.
received
=
false
;
return
parse
(
udp
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment