diff options
author | Mikhail Burakov <mburakov@mailbox.org> | 2023-03-16 06:26:03 +0100 |
---|---|---|
committer | Mikhail Burakov <mburakov@mailbox.org> | 2023-03-16 06:26:03 +0100 |
commit | d261527c84f0e43022c31a65a0179d464dd694f7 (patch) | |
tree | 2cd0ce4dc3cd6944a9a7bee6a01f24e011b5bc89 /main.c | |
parent | 192e8d3a83eb7c4db4a089a2f63e9818a12e2c10 (diff) |
Write encoded frames to provided fd
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -125,7 +125,7 @@ int main(int argc, char* argv[]) { GpuContextSync(gpu_context); unsigned long long before_encode = MicrosNow(); - if (!EncodeContextEncodeFrame(encode_context)) { + if (!EncodeContextEncodeFrame(encode_context, STDOUT_FILENO)) { LOG("Failed to encode frame"); return EXIT_FAILURE; } @@ -142,7 +142,7 @@ int main(int argc, char* argv[]) { if (micros) usleep((unsigned)micros); } - if (!EncodeContextEncodeFrame(encode_context)) { + if (!EncodeContextEncodeFrame(encode_context, STDOUT_FILENO)) { LOG("Failed to drain encoder"); return EXIT_FAILURE; } |