summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-02-14 16:22:18 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-02-14 16:22:18 +0100
commit487d356161fd104caeccb0d339ffa1f981f111fe (patch)
tree167081c4727723ed3cae1ff84c6b22872447fb16 /modules
parent899ad127cac4a9ba132ec9548d9e09d98bb791ba (diff)
Revert "avcodec: Return EPROTO when encountering missing fragments in H264 stream, to trigger intra-frame request (#339)"
This reverts commit 369b0c0f0e96c529823a11cfc9ab55ce7ade4451. unfortunately I have to revert this commit. in case of packet loss, it might enter a state where no frames are display, and it never gets out of this state. https://github.com/alfredh/baresip/issues/353
Diffstat (limited to 'modules')
-rw-r--r--modules/avcodec/decode.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/avcodec/decode.c b/modules/avcodec/decode.c
index b9ee0c5..f20585f 100644
--- a/modules/avcodec/decode.c
+++ b/modules/avcodec/decode.c
@@ -339,7 +339,6 @@ int decode_h264(struct viddec_state *st, struct vidframe *frame,
" ignoring NAL\n");
fragment_rewind(st);
++st->stats.n_lost;
- return EPROTO;
}
st->frag_start = st->mb->pos;
@@ -358,7 +357,7 @@ int decode_h264(struct viddec_state *st, struct vidframe *frame,
if (!st->frag) {
debug("avcodec: ignoring fragment\n");
++st->stats.n_lost;
- return EPROTO;
+ return 0;
}
if (seq_diff(st->frag_seq, seq) != 1) {
@@ -366,7 +365,7 @@ int decode_h264(struct viddec_state *st, struct vidframe *frame,
fragment_rewind(st);
st->frag = false;
++st->stats.n_lost;
- return EPROTO;
+ return 0;
}
}