mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avdevice/decklink_enc: fix operator precedence in create_s337_payload
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
412274c0d2
commit
2f8690c5d4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user