video-chroma: Fix interlaced chroma resampling

Use the interlaced flag to select the right resampler.
This commit is contained in:
Wim Taymans 2014-11-19 09:28:52 +01:00
parent d6ed383c6f
commit b911434716

View file

@ -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);