Browse Source

Move repetitive successful video key validation logs to trace

master
evgeny 4 days ago
parent
commit
c5efa56939
  1. 2
      src/call/call_video.c
  2. 2
      src/call/call_video_bitstream.c

2
src/call/call_video.c

@ -261,7 +261,7 @@ int call_video_receiver_push(struct call_video_receiver *r, const struct call_vi
if (f->flags & CALL_VIDEO_KEY) {
if (f->size < 5 || read_be(r->data, 4) > 65536 || read_be(r->data, 4) >= f->size - 4)
return receiver_fail(r, "key_envelope");
DEBUG_DEBUG(DEBUG_CATEGORY_CALL, "video KEY assembled generation=%llu frame=%llu pts=%lld bytes=%u codec=%u size=%ux%u",
DEBUG_TRACE(DEBUG_CATEGORY_CALL, "video KEY assembled generation=%llu frame=%llu pts=%lld bytes=%u codec=%u size=%ux%u",
(unsigned long long)f->format.generation, (unsigned long long)f->frame_id, (long long)f->pts_us,
f->size, f->format.codec, f->format.width, f->format.height);
}

2
src/call/call_video_bitstream.c

@ -285,7 +285,7 @@ int call_video_inspect_key(int codec, const uint8_t *data, size_t length, struct
|| vp.profile != stream.profile || vp.level != stream.level || stream.dpb > vp.dpb))) {
bad("missing/inconsistent parameter sets or IDR"); goto done;
}
DEBUG_DEBUG(DEBUG_CATEGORY_CALL, "video bitstream verified codec=%d profile=%u level=%u size=%ux%u dpb=%u slices=%u",
DEBUG_TRACE(DEBUG_CATEGORY_CALL, "video bitstream verified codec=%d profile=%u level=%u size=%ux%u dpb=%u slices=%u",
codec, stream.profile, stream.level, stream.width, stream.height, stream.dpb, slices);
*out = stream; result = 0;
done:

Loading…
Cancel
Save