mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue