History

avdevice/decklink_enc: fix operator precedence in create_s337_payload

Marton Balint committed 3 years ago

Commit 2f8690c1 parent 412274c1 file · +1 −1Browse files

Showing the changes to libavdevice/decklink_enc.cpp (1 of 1 file). Show all

Unified · Split

libavdevice/decklink_enc.cpp+1−1
@@ -318,7 +318,7 @@ static int create_s337_payload(AVPacket *pkt, uint8_t **outbuf, int *outsize) · 317 unmodified lines
318 /* Ensure final payload is aligned on 4-byte boundary */318 /* Ensure final payload is aligned on 4-byte boundary */
319 if (pkt->size & 1)319 if (pkt->size & 1)
320 bytestream2_put_le16u(&pb, pkt->data[pkt->size - 1] << 8);320 bytestream2_put_le16u(&pb, pkt->data[pkt->size - 1] << 8);
321 if ((pkt->size & 3 == 1) || (pkt->size & 3 == 2))321 if ((pkt->size & 3) == 1 || (pkt->size & 3) == 2)
322 bytestream2_put_le16u(&pb, 0);322 bytestream2_put_le16u(&pb, 0);
323 323
324 *outsize = payload_size;324 *outsize = payload_size;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t