From beb62a032fa91545f530b910f3639f913cccee59 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 16 Mar 2024 17:36:56 +0000 Subject: [PATCH] h264-encoder: Try v4l2 before ffmpeg --- src/h264-encoder.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/h264-encoder.c b/src/h264-encoder.c index 8cf44ad..2c7157c 100644 --- a/src/h264-encoder.c +++ b/src/h264-encoder.c @@ -30,15 +30,15 @@ struct h264_encoder* h264_encoder_create(uint32_t width, uint32_t height, { struct h264_encoder* encoder = NULL; -#ifdef HAVE_FFMPEG - encoder = h264_encoder_ffmpeg_impl.create(width, height, format, quality); +#ifdef HAVE_V4L2 + encoder = h264_encoder_v4l2m2m_impl.create(width, height, format, quality); if (encoder) { return encoder; } #endif -#ifdef HAVE_V4L2 - encoder = h264_encoder_v4l2m2m_impl.create(width, height, format, quality); +#ifdef HAVE_FFMPEG + encoder = h264_encoder_ffmpeg_impl.create(width, height, format, quality); if (encoder) { return encoder; }