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; }