mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
Update for gst_video_transfer_function_*() function renaming
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-libav/-/merge_requests/89>
This commit is contained in:
parent
93f78bc76b
commit
6a9b42557e
2 changed files with 2 additions and 2 deletions
|
@ -2968,7 +2968,7 @@ gst_ffmpeg_videoinfo_to_context (GstVideoInfo * info, AVCodecContext * context)
|
||||||
context->color_primaries =
|
context->color_primaries =
|
||||||
gst_video_color_primaries_to_iso (info->colorimetry.primaries);
|
gst_video_color_primaries_to_iso (info->colorimetry.primaries);
|
||||||
context->color_trc =
|
context->color_trc =
|
||||||
gst_video_color_transfer_to_iso (info->colorimetry.transfer);
|
gst_video_transfer_function_to_iso (info->colorimetry.transfer);
|
||||||
context->colorspace =
|
context->colorspace =
|
||||||
gst_video_color_matrix_to_iso (info->colorimetry.matrix);
|
gst_video_color_matrix_to_iso (info->colorimetry.matrix);
|
||||||
|
|
||||||
|
|
|
@ -1250,7 +1250,7 @@ gst_ffmpegviddec_negotiate (GstFFMpegVidDec * ffmpegdec,
|
||||||
if (!gst_structure_has_field (in_s, "colorimetry")
|
if (!gst_structure_has_field (in_s, "colorimetry")
|
||||||
|| in_info->colorimetry.transfer == GST_VIDEO_TRANSFER_UNKNOWN) {
|
|| in_info->colorimetry.transfer == GST_VIDEO_TRANSFER_UNKNOWN) {
|
||||||
out_info->colorimetry.transfer =
|
out_info->colorimetry.transfer =
|
||||||
gst_video_color_transfer_from_iso (context->color_trc);
|
gst_video_transfer_function_from_iso (context->color_trc);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gst_structure_has_field (in_s, "colorimetry")
|
if (!gst_structure_has_field (in_s, "colorimetry")
|
||||||
|
|
Loading…
Reference in a new issue