From f7eaf0e658f3586e88d7a95673011f9b0b31718b Mon Sep 17 00:00:00 2001 From: Mikhail Burakov Date: Thu, 16 Mar 2023 07:30:39 +0100 Subject: Fix typo --- encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encode.c b/encode.c index ed91e73..e8c1c99 100644 --- a/encode.c +++ b/encode.c @@ -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)); -- cgit v1.2.3