msdk: jpegdec: Fix non-interleaved sample decode

Using the default value (InterleavedDec == MFX_SCANTYPE_UNKNOWN)
causing issues with non-interleaved sample decode. Ideally the usage
of MFXVideoDECODE_DecodeHeader should fix these type of issue, but
it seems to be not. But hardcoding the InterleaveDec to
is fixing the problem and fortunately msdk seems to be taking care of
Interleaved samples
too .So let's hardcode it for now.
diff --git a/sys/msdk/gstmsdkmjpegdec.c b/sys/msdk/gstmsdkmjpegdec.c
index 6ae02d6..ef37775 100644
--- a/sys/msdk/gstmsdkmjpegdec.c
+++ b/sys/msdk/gstmsdkmjpegdec.c
@@ -62,6 +62,14 @@
 gst_msdkmjpegdec_configure (GstMsdkDec * decoder)
   decoder->param.mfx.CodecId = MFX_CODEC_JPEG;
+  /* HACK to make sure MSDK won't crash while handling non-interleaved samples */
+  /* setting MFX_SCANTYPE_UNKNOWN (== 0) causing issues for
+     non-interleaved samples. Usage of MFXVideoDECODE_DecodeHeader
+     also doesn't seems to fix the issue. But even if we hardcode
+     the InterleaveDec to MFX_SCANTYPE_NONINTERLEAVED, msdk seems to be taking care
+     of Interleaved samples, so let's hardcode it for now */
+  decoder->param.mfx.InterleavedDec = MFX_SCANTYPE_NONINTERLEAVED;
   return TRUE;