x264enc: Set bit depth for x264 ≥ 153
https://bugzilla.gnome.org/show_bug.cgi?id=796975
This commit is contained in:
parent
484ee3e032
commit
cf385f20cf
@ -1578,6 +1578,9 @@ gst_x264_enc_init_encoder (GstX264Enc * encoder)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* set up encoder parameters */
|
/* set up encoder parameters */
|
||||||
|
#if X264_BUILD >= 153
|
||||||
|
encoder->x264param.i_bitdepth = GST_VIDEO_INFO_COMP_DEPTH (info, 0);
|
||||||
|
#endif
|
||||||
encoder->x264param.i_csp =
|
encoder->x264param.i_csp =
|
||||||
gst_x264_enc_gst_to_x264_video_format (info->finfo->format, NULL);
|
gst_x264_enc_gst_to_x264_video_format (info->finfo->format, NULL);
|
||||||
if (info->fps_d == 0 || info->fps_n == 0) {
|
if (info->fps_d == 0 || info->fps_n == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user