Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
8d918a98
Commit
8d918a98
authored
Feb 18, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtpdec: Use the right logging context
parent
d24bd96b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
rtpdec.c
libavformat/rtpdec.c
+8
-10
No files found.
libavformat/rtpdec.c
View file @
8d918a98
...
...
@@ -143,8 +143,7 @@ static int rtcp_parse_packet(RTPDemuxContext *s, const unsigned char *buf,
switch
(
buf
[
1
])
{
case
RTCP_SR
:
if
(
payload_len
<
20
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Invalid length for RTCP SR packet
\n
"
);
av_log
(
s
->
ic
,
AV_LOG_ERROR
,
"Invalid RTCP SR packet length
\n
"
);
return
AVERROR_INVALIDDATA
;
}
...
...
@@ -514,8 +513,8 @@ RTPDemuxContext *ff_rtp_parse_open(AVFormatContext *s1, AVStream *st,
s
->
st
=
st
;
s
->
queue_size
=
queue_size
;
av_log
(
s
->
st
?
s
->
st
->
codec
:
NULL
,
AV_LOG_VERBOSE
,
"setting jitter buffer size to %d
\n
"
,
s
->
queue_size
);
av_log
(
s
->
ic
,
AV_LOG_VERBOSE
,
"setting jitter buffer size to %d
\n
"
,
s
->
queue_size
);
rtp_init_statistics
(
&
s
->
statistics
,
0
);
if
(
st
)
{
...
...
@@ -616,7 +615,7 @@ static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt,
st
=
s
->
st
;
// only do something with this if all the rtp checks pass...
if
(
!
rtp_valid_packet_in_sequence
(
&
s
->
statistics
,
seq
))
{
av_log
(
s
t
?
st
->
codec
:
NULL
,
AV_LOG_ERROR
,
av_log
(
s
->
ic
,
AV_LOG_ERROR
,
"RTP: PT=%02x: bad cseq %04x expected=%04x
\n
"
,
payload_type
,
seq
,
((
s
->
seq
+
1
)
&
0xffff
));
return
-
1
;
...
...
@@ -730,7 +729,7 @@ static int rtp_parse_queued_packet(RTPDemuxContext *s, AVPacket *pkt)
return
-
1
;
if
(
!
has_next_packet
(
s
))
av_log
(
s
->
st
?
s
->
st
->
codec
:
NULL
,
AV_LOG_WARNING
,
av_log
(
s
->
ic
,
AV_LOG_WARNING
,
"RTP: missed %d packets
\n
"
,
s
->
queue
->
seq
-
s
->
seq
-
1
);
/* Parse the first packet in the queue, and dequeue it */
...
...
@@ -797,7 +796,7 @@ static int rtp_parse_one_packet(RTPDemuxContext *s, AVPacket *pkt,
int16_t
diff
=
seq
-
s
->
seq
;
if
(
diff
<
0
)
{
/* Packet older than the previously emitted one, drop */
av_log
(
s
->
st
?
s
->
st
->
codec
:
NULL
,
AV_LOG_WARNING
,
av_log
(
s
->
ic
,
AV_LOG_WARNING
,
"RTP: dropping old packet received too late
\n
"
);
return
-
1
;
}
else
if
(
diff
<=
1
)
{
...
...
@@ -813,8 +812,7 @@ static int rtp_parse_one_packet(RTPDemuxContext *s, AVPacket *pkt,
/* Return the first enqueued packet if the queue is full,
* even if we're missing something */
if
(
s
->
queue_len
>=
s
->
queue_size
)
{
av_log
(
s
->
st
?
s
->
st
->
codec
:
NULL
,
AV_LOG_WARNING
,
"jitter buffer full
\n
"
);
av_log
(
s
->
ic
,
AV_LOG_WARNING
,
"jitter buffer full
\n
"
);
return
rtp_parse_queued_packet
(
s
,
pkt
);
}
return
-
1
;
...
...
@@ -864,7 +862,7 @@ int ff_parse_fmtp(AVFormatContext *s,
int
value_size
=
strlen
(
p
)
+
1
;
if
(
!
(
value
=
av_malloc
(
value_size
)))
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Failed to allocate data for FMTP."
);
av_log
(
s
,
AV_LOG_ERROR
,
"Failed to allocate data for FMTP."
);
return
AVERROR
(
ENOMEM
);
}
...
...
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