summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/avtp_pipeline/avtp/openavb_avtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/avtp_pipeline/avtp/openavb_avtp.c b/lib/avtp_pipeline/avtp/openavb_avtp.c
index 299f2b0d..947dd9c0 100644
--- a/lib/avtp_pipeline/avtp/openavb_avtp.c
+++ b/lib/avtp_pipeline/avtp/openavb_avtp.c
@@ -385,7 +385,7 @@ openavbRC openavbAvtpTx(void *pv, bool bSend, bool txBlockingInIntf)
// Increment the sequence number now that we are sure this is a good packet.
pStream->avtp_sequence_num++;
- if (pStream->drop_avtp_packets) {
+ if (pStream->drop_avtp_packets > 0) {
pStream->drop_avtp_packets -= 1;
} else {
// Mark the frame "ready to send".