"bad value for '%s': '%s'\n", opt, param); \
return -1; \
} \
- } while (0);
+ } while (0)
static int convert_pix_fmt(enum PixelFormat pix_fmt)
{
.init = X264_init,
.encode = X264_frame,
.close = X264_close,
- .capabilities = CODEC_CAP_DELAY,
+ .capabilities = CODEC_CAP_DELAY | CODEC_CAP_AUTO_THREADS,
.long_name = NULL_IF_CONFIG_SMALL("libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"),
.priv_class = &class,
.defaults = x264_defaults,