avdevice/decklink_dec: fix signed and unsigned comparison warning
authorMarton Balint <cus@passwd.hu>
Sun, 27 Aug 2017 15:55:02 +0000 (17:55 +0200)
committerMarton Balint <cus@passwd.hu>
Sun, 27 Aug 2017 15:55:43 +0000 (17:55 +0200)
Signed-off-by: Marton Balint <cus@passwd.hu>
libavdevice/decklink_dec.cpp

index 64157b4..c271ff3 100644 (file)
@@ -234,7 +234,7 @@ static int avpacket_queue_put(AVPacketQueue *q, AVPacket *pkt)
     AVPacketList *pkt1;
 
     // Drop Packet if queue size is > maximum queue size
-    if (avpacket_queue_size(q) > q->max_q_size) {
+    if (avpacket_queue_size(q) > (uint64_t)q->max_q_size) {
         av_log(q->avctx, AV_LOG_WARNING,  "Decklink input buffer overrun!\n");
         return -1;
     }