summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-02-14 16:31:45 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-02-14 16:31:45 +0100
commitcebac871de9fdac700511c0e4e34e070133573e6 (patch)
tree23e79dfadba86a3aa6cc2ef421ff7276f210e7e7
parent487d356161fd104caeccb0d339ffa1f981f111fe (diff)
avcodec: additional fragment debug
-rw-r--r--modules/avcodec/decode.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/avcodec/decode.c b/modules/avcodec/decode.c
index f20585f..61743e1 100644
--- a/modules/avcodec/decode.c
+++ b/modules/avcodec/decode.c
@@ -335,8 +335,8 @@ int decode_h264(struct viddec_state *st, struct vidframe *frame,
if (fu.s) {
if (st->frag) {
- debug("avcodec: lost fragments;"
- " ignoring NAL\n");
+ debug("avcodec: start: lost fragments;"
+ " ignoring previous NAL\n");
fragment_rewind(st);
++st->stats.n_lost;
}
@@ -355,7 +355,8 @@ int decode_h264(struct viddec_state *st, struct vidframe *frame,
}
else {
if (!st->frag) {
- debug("avcodec: ignoring fragment\n");
+ debug("avcodec: ignoring fragment"
+ " (nal=%u)\n", fu.type);
++st->stats.n_lost;
return 0;
}