summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.decina@collabora.co.uk>2011-09-26 17:58:29 +0200
committerAlessandro Decina <alessandro.decina@collabora.co.uk>2011-09-26 17:58:29 +0200
commitf809a975c564cbfe9d17dc3ba0147ffd9f02f66f (patch)
tree22fda110549e6770a4b331533d9fe879ab21e443
parent9dad6542b84d36f3222d35296c9e649fe0a1d430 (diff)
ducativc1dec: change param settings
Set lateAcquireArg to -1 so that the codec starts at all.. enable error concealment and configure codec to not expect frame headers.
-rw-r--r--src/gstducativc1dec.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/gstducativc1dec.c b/src/gstducativc1dec.c
index d76d7cd..61291d9 100644
--- a/src/gstducativc1dec.c
+++ b/src/gstducativc1dec.c
@@ -87,6 +87,8 @@ gst_ducati_vc1dec_parse_caps (GstDucatiVidDec * vdec, GstStructure * s)
return ret;
}
+ GST_INFO_OBJECT (vdec, "level %d", self->level);
+
return FALSE;
}
@@ -114,8 +116,17 @@ gst_ducati_vc1dec_allocate_params (GstDucatiVidDec * self, gint params_sz,
if (ret) {
IVC1VDEC_Params *params = (IVC1VDEC_Params *) self->params;
self->params->maxBitRate = 45000000;
- self->params->displayDelay = IVIDDEC3_DISPLAY_DELAY_1;
- params->FrameLayerDataPresentFlag = FALSE;
+ self->params->displayDelay = IVIDDEC3_DISPLAY_DELAY_AUTO;
+
+ /* this indicates whether buffers are prefixed with the frame layer struct
+ * or not. See Table 266: Frame Layer Data Structure from the spec */
+ params->frameLayerDataPresentFlag = TRUE;
+
+ /* enable concealment */
+ params->ErrorConcealmentON = 1;
+
+ /* codec wants lateAcquireArg = -1 */
+ self->dynParams->lateAcquireArg = -1;
}
return ret;