Skip to content

Commit 5348acd

Browse files
committed
avformat/whip: optimize log content
need to be changed AV_LOG_DEBUG before official commit Signed-off-by: Jack Lau <jacklau1222@qq.com>
1 parent 34b5479 commit 5348acd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

libavformat/whip.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,10 +1963,13 @@ static int whip_write_packet(AVFormatContext *s, AVPacket *pkt)
19631963

19641964
const RtpHistoryItem * it = rtp_history_find(whip, seq);
19651965
if (it) {
1966-
send_rtx_packet(s, it->pkt, it->size);
1967-
av_log(whip, AV_LOG_INFO, "WHIP: NACK packet found: size: %d, seq=%d, blp=%d\n", it->size, seq, blp);
1966+
ret = send_rtx_packet(s, it->pkt, it->size);
1967+
av_log(whip, AV_LOG_INFO,
1968+
"WHIP: NACK, packet found: size: %d, seq=%d, rtx size=%d, lateset stored packet seq:%d\n",
1969+
it->size, seq, ret, whip->history[whip->hist_head-1].seq);
19681970
} else {
1969-
av_log(whip, AV_LOG_INFO, "WHIP: NACK packet, seq=%d, blp=%d, not found, the latest packet seq: %d, rtx seq: %d\n",
1971+
av_log(whip, AV_LOG_INFO,
1972+
"WHIP: NACK, packet not found, seq=%d, blp=%d, latest stored packet seq: %d, latest rtx seq: %d\n",
19701973
seq, blp, whip->history[whip->hist_head-1].seq, whip->rtx_seq);
19711974
}
19721975
}

0 commit comments

Comments
 (0)