MT#55283 drop NULL allowance

Change-Id: Ie7eddaa663439d915eae99ebe9334de004ae32ab
pull/2100/head
Richard Fuchs 2 weeks ago
parent dc22238df8
commit 7d942feb39

@ -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);

Loading…
Cancel
Save