summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2018-08-16 13:17:58 +0200
committerSebastian Dröge <sebastian@centricular.com>2018-08-17 09:47:39 +0300
commitfbac9a80edcd1301cf0de58132e70861aeb655c0 (patch)
tree5174847afb01264e5ee308e9e41e1e91c39df854
parentff469814b1e413a9256c2df8447dbe768e0759f9 (diff)
x264enc: Set bit depth for x264 ≥ 153
https://bugzilla.gnome.org/show_bug.cgi?id=796975
-rw-r--r--ext/x264/gstx264enc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c
index 29bbd50d..071323d4 100644
--- a/ext/x264/gstx264enc.c
+++ b/ext/x264/gstx264enc.c
@@ -1586,6 +1586,9 @@ gst_x264_enc_init_encoder (GstX264Enc * encoder)
}
/* set up encoder parameters */
+#if X264_BUILD >= 153
+ encoder->x264param.i_bitdepth = GST_VIDEO_INFO_COMP_DEPTH (info, 0);
+#endif
encoder->x264param.i_csp =
gst_x264_enc_gst_to_x264_video_format (info->finfo->format, NULL);
if (info->fps_d == 0 || info->fps_n == 0) {