h264-encoder: Try v4l2 before ffmpeg
parent
d28b2576e9
commit
beb62a032f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue