]> git.sesse.net Git - ffmpeg/commitdiff
x265: Use the encoder defaults
authorLuca Barbato <lu_zero@gentoo.org>
Thu, 28 Aug 2014 01:49:05 +0000 (03:49 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 3 Sep 2014 00:14:17 +0000 (02:14 +0200)
Reset the settings as it is done for x264.

libavcodec/libx265.c

index 026f6ff05797b8292fd79fb8786dc659206c0ab2..bee403d00505b7a52548175e0c091fc8e0b52862 100644 (file)
@@ -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,
 };