mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
video-chroma: Fix interlaced chroma resampling
Use the interlaced flag to select the right resampler.
This commit is contained in:
parent
d6ed383c6f
commit
b911434716
1 changed files with 3 additions and 0 deletions
|
@ -937,6 +937,9 @@ gst_video_chroma_resample_new (GstVideoChromaMethod method,
|
|||
((ABS (v_factor) - 1) * 8) + (cosite ? 4 : 0) + (bits ==
|
||||
16 ? 2 : 0) + (v_factor < 0 ? 1 : 0) + 1;
|
||||
|
||||
if (flags & GST_VIDEO_CHROMA_FLAG_INTERLACED)
|
||||
v_index += 16;
|
||||
|
||||
GST_DEBUG ("v_resample %d, factor %d, cosite %d", v_index, v_factor, cosite);
|
||||
|
||||
result = g_slice_new (GstVideoChromaResample);
|
||||
|
|
Loading…
Reference in a new issue