jpegvdec: set numOutputDataUnits = 1 to please the codec
authorAlessandro Decina <alessandro.decina@collabora.co.uk>
Fri, 10 Aug 2012 11:14:06 +0000 (11:14 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 16 Nov 2012 14:46:17 +0000 (14:46 +0000)
src/gstducatijpegdec.c

index 0541c85a1223751497a47eb9b8b41c1fe348afe8..def0edb980de016af528581be9cc6371e65ad477 100644 (file)
@@ -75,7 +75,12 @@ gst_ducati_jpegdec_allocate_params (GstDucatiVidDec * self, gint params_sz,
 
   if (!ret)
     return ret;
-  self->params->displayDelay = 0;
+
+  /* We're doing ENTIREFRAME decoding so in theory 0 should be a valid value
+   * for this. The codec seems to check that it's non-zero though...
+   */
+  self->params->numOutputDataUnits = 1;
+
   dynParams = (IJPEGVDEC_DynamicParams *) self->dynParams;
   dynParams->decodeThumbnail = 0;
   dynParams->thumbnailMode = 3;