aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2023-04-16 00:08:22 +0200
committerMarton Balint <cus@passwd.hu>2023-04-24 23:00:50 +0200
commit2f8690c5d450b984640bd27dd7fd3a96d77ecc6b (patch)
tree2adecc22781d6550d5e62b9200fa186281c7d4c1 /libavdevice
parent412274c0d2b0d25febc9d80ac9dbfd1e9bf32962 (diff)
downloadffmpeg-2f8690c5d450b984640bd27dd7fd3a96d77ecc6b.tar.gz
avdevice/decklink_enc: fix operator precedence in create_s337_payload
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/decklink_enc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/decklink_enc.cpp b/libavdevice/decklink_enc.cpp
index 92bfdb279f..9f1a8df438 100644
--- a/libavdevice/decklink_enc.cpp
+++ b/libavdevice/decklink_enc.cpp
@@ -318,7 +318,7 @@ static int create_s337_payload(AVPacket *pkt, uint8_t **outbuf, int *outsize)
/* Ensure final payload is aligned on 4-byte boundary */
if (pkt->size & 1)
bytestream2_put_le16u(&pb, pkt->data[pkt->size - 1] << 8);
- if ((pkt->size & 3 == 1) || (pkt->size & 3 == 2))
+ if ((pkt->size & 3) == 1 || (pkt->size & 3) == 2)
bytestream2_put_le16u(&pb, 0);
*outsize = payload_size;