diff options
author | Mikhail Burakov <mburakov@mailbox.org> | 2023-03-16 07:30:39 +0100 |
---|---|---|
committer | Mikhail Burakov <mburakov@mailbox.org> | 2023-03-16 07:30:39 +0100 |
commit | f7eaf0e658f3586e88d7a95673011f9b0b31718b (patch) | |
tree | 21f1c960cbbae231b6a29f5405c22c8a7cfd2a61 | |
parent | d261527c84f0e43022c31a65a0179d464dd694f7 (diff) |
Fix typo
-rw-r--r-- | encode.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -223,7 +223,7 @@ bool EncodeContextEncodeFrame(struct EncodeContext* encode_context, int fd) { } packet->stream_index = 0; - bool result = write(fd, packet->data, (size_t)packet->size) != packet->size; + bool result = write(fd, packet->data, (size_t)packet->size) == packet->size; av_packet_unref(packet); if (!result) { LOG("Failed to write full packet (%s)", strerror(errno)); |