h264-encoder: Try v4l2 before ffmpeg

h264-v4l2m2m
Andri Yngvason 2024-03-16 17:36:56 +00:00
parent d28b2576e9
commit beb62a032f
1 changed files with 4 additions and 4 deletions

View File

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