summaryrefslogtreecommitdiff
path: root/libavcodec/libx265.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-08-28 03:49:05 +0200
committerLuca Barbato <lu_zero@gentoo.org>2014-09-03 02:14:17 +0200
commit4912b634b517c8acfc476c5d47f10be83fe7e18b (patch)
treeb1e874aae721fd010116a6e97760afb0e965a129 /libavcodec/libx265.c
parenteda7571ea1a41c835e3a02fa9517e5bc67d7adce (diff)
x265: Use the encoder defaults
Reset the settings as it is done for x264.
Diffstat (limited to 'libavcodec/libx265.c')
-rw-r--r--libavcodec/libx265.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
index 026f6ff057..bee403d005 100644
--- a/libavcodec/libx265.c
+++ b/libavcodec/libx265.c
@@ -299,6 +299,11 @@ static const AVClass class = {
.version = LIBAVUTIL_VERSION_INT,
};
+static const AVCodecDefault x265_defaults[] = {
+ { "b", "0" },
+ { NULL },
+};
+
AVCodec ff_libx265_encoder = {
.name = "libx265",
.long_name = NULL_IF_CONFIG_SMALL("libx265 H.265 / HEVC"),
@@ -310,5 +315,6 @@ AVCodec ff_libx265_encoder = {
.close = libx265_encode_close,
.priv_data_size = sizeof(libx265Context),
.priv_class = &class,
+ .defaults = x265_defaults,
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_AUTO_THREADS,
};