x264enc: Set bit depth for x264 ≥ 153

https://bugzilla.gnome.org/show_bug.cgi?id=796975
This commit is contained in:
Jan Alexander Steffens (heftig) 2018-08-16 13:17:58 +02:00 committed by Sebastian Dröge
parent 484ee3e032
commit cf385f20cf

View file

@ -1578,6 +1578,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) {