From 7d942feb39a764add5a7dd8c21503915a3093854 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 1 May 2026 07:31:15 -0400 Subject: [PATCH] MT#55283 drop NULL allowance Change-Id: Ie7eddaa663439d915eae99ebe9334de004ae32ab --- daemon/codec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon/codec.c b/daemon/codec.c index a2bf68705..8df2f2437 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -335,6 +335,7 @@ static int packet_decoded_audio_player(decoder_t *decoder, AVFrame *frame, void static void codec_touched(struct codec_store *cs, rtp_payload_type *pt); +__attribute__((nonnull(4, 5, 6))) static bool __buffer_dtx(struct dtx_buffer *dtxb, struct codec_ssrc_handler *ch, struct codec_ssrc_handler *input_handler, struct transcode_packet *packet, struct media_packet *mp, @@ -3417,7 +3418,7 @@ static bool __buffer_dtx(struct dtx_buffer *dtxb, struct codec_ssrc_handler *dec return true; } - unsigned long ts = packet ? packet->ts : 0; + unsigned long ts = packet->ts; if (!mp->ssrc_out->seq_set) { mp->ssrc_out->seq_set = true; @@ -3453,7 +3454,7 @@ static bool __buffer_dtx(struct dtx_buffer *dtxb, struct codec_ssrc_handler *dec } // packet now consumed if there was one - bool ret = packet ? true : false; + bool ret = true; packet = NULL; mutex_unlock(&dtxb->lock);