jpegdec: Configure JPEG chroma-siting for YUV formats
authorSebastian Dröge <sebastian@centricular.com>
Fri, 28 Feb 2020 17:35:34 +0000 (19:35 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 9 Mar 2020 19:34:08 +0000 (21:34 +0200)
ext/jpeg/gstjpegdec.c

index 9c6464b6de2a8af4c5871f3baab986effef18082..6ce4ebda6e1c7824cc495a3a645dab0cda2ad378 100644 (file)
@@ -990,6 +990,9 @@ gst_jpeg_dec_negotiate (GstJpegDec * dec, gint width, gint height, gint clrspc,
     case JCS_GRAYSCALE:
       break;
     default:
+      /* aka JPEG chroma siting */
+      outstate->info.chroma_site = GST_VIDEO_CHROMA_SITE_NONE;
+
       outstate->info.colorimetry.range = GST_VIDEO_COLOR_RANGE_0_255;
       outstate->info.colorimetry.matrix = GST_VIDEO_COLOR_MATRIX_BT601;
       outstate->info.colorimetry.transfer = GST_VIDEO_TRANSFER_UNKNOWN;