video-converter: Fix crashes in fast-paths when converting interlaced formats with...
authorSebastian Dröge <sebastian@centricular.com>
Wed, 11 Jan 2017 16:24:38 +0000 (18:24 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 11 Jan 2017 16:41:14 +0000 (18:41 +0200)
commitd0c1b34288b4bbbc7bce69afcc4e31d80e2dfc13
tree1671b02194c7b052843537d7ca2dc2916585aa95
parentef8f0cdd9d4ddf89e620d343c4b9b73cee7bcbb5
video-converter: Fix crashes in fast-paths when converting interlaced formats with different vertical subsampling

E.g. the following pipelines fail because chroma values after the last
line are read (note: 486 % 4 == 2):

gst-launch-1.0 videotestsrc ! "video/x-raw,interlace-mode=interleaved,width=720,height=486,format=UYVY" ! videoconvert ! "video/x-raw,format=I420" ! fakesink
gst-launch-1.0 videotestsrc ! "video/x-raw,interlace-mode=interleaved,width=720,height=486,format=I420" ! videoconvert ! "video/x-raw,format=UYVY" ! fakesink
gst-launch-1.0 videotestsrc ! "video/x-raw,interlace-mode=interleaved,width=720,height=486,format=I420" ! videoconvert ! "video/x-raw,format=AYUV" ! fakesink
gst-libs/gst/video/video-converter.c