Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
af6727a8
Commit
af6727a8
authored
May 16, 2014
by
Ghislain MARY
Browse files
Stop VP8 decoding while we are waiting for a reference frame.
parent
cffae589
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/voip/vp8rtpfmt.c
src/voip/vp8rtpfmt.c
+9
-5
No files found.
src/voip/vp8rtpfmt.c
View file @
af6727a8
...
...
@@ -426,7 +426,7 @@ static void output_valid_partitions(Vp8RtpFmtUnpackerCtx *ctx, MSQueue *out) {
if
((
ctx
->
avpf_enabled
==
TRUE
)
&&
(
is_reference_frame
(
frame
,
NULL
)
==
TRUE
))
{
ctx
->
waiting_for_reference_frame
=
FALSE
;
}
if
((
ctx
->
valid_keyframe_received
==
TRUE
)
||
(
ctx
->
waiting_for_reference_frame
==
FALSE
))
{
if
((
ctx
->
valid_keyframe_received
==
TRUE
)
&&
(
ctx
->
waiting_for_reference_frame
==
FALSE
))
{
/* Output the complete valid frame if a reference frame has been received. */
if
(
ctx
->
output_partitions
==
TRUE
)
{
nb_partitions
=
ms_list_size
(
frame
->
partitions_list
);
...
...
@@ -441,10 +441,14 @@ static void output_valid_partitions(Vp8RtpFmtUnpackerCtx *ctx, MSQueue *out) {
frame
->
outputted
=
TRUE
;
send_rpsi_if_reference_frame
(
ctx
,
frame
);
}
else
{
/* Drop frames until the first keyframe is successfully received. */
ms_warning
(
"VP8 frame dropped because keyframe has not been received yet."
);
frame
->
discarded
=
TRUE
;
send_pli
(
ctx
);
if
(
ctx
->
waiting_for_reference_frame
==
TRUE
)
{
/* Do not decode frames while we are waiting for a reference frame. */
}
else
{
/* Drop frames until the first keyframe is successfully received. */
ms_warning
(
"VP8 frame dropped because keyframe has not been received yet."
);
frame
->
discarded
=
TRUE
;
send_pli
(
ctx
);
}
}
}
else
if
(
is_frame_marker_present
(
frame
)
==
TRUE
)
{
if
(
is_first_partition_present_in_frame
(
frame
)
==
TRUE
)
{
...
...
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