[Common-dev] annex g implementation
Gang.Shen at nokia.com Gang.Shen at nokia.comHi,
I have a question regarding annex g implementation. In "sdpmdparse.cpp" #229, why it sums up ulPreDec and ulPostDec as "Preroll" period? It seems "vidrenderer" use this value to calculate preroll buffer size. Could we just use ulPreDec for "Preroll"?
Thanks,
Gang Shen
......
sdpmdparse.cpp line#218 to line#235.
......
if (HXR_OK != pHeader->GetPropertyULONG32("Preroll", ulTmp))
{
// We don't have a preroll so we should use the Annex G
// headers to create one
ULONG32 ulPreDec = 0;
ULONG32 ulPostDec = 0;
pHeader->GetPropertyULONG32("x-initpredecbufperiod", ulPreDec);
pHeader->GetPropertyULONG32("x-initpostdecbufperiod", ulPostDec);
// Add x-initpredecbufperiod to x-initpostdecbufperiod and
// convert the value to milliseconds.
ULONG32 ulPreroll = (ulPreDec + ulPostDec) / 90;
if (ulPreroll)
{
pHeader->SetPropertyULONG32("Preroll", ulPreroll);
}
}
....