Can Mpeg2FrameConstrutor detect changes in aspect ratio? solved!

Can Mpeg2FrameConstrutor detect changes in aspect ratio? solved!

Edit: Solved by using GetInfo() from the decoder.

I have a live stream that changes aspect ratio on-the-fly, I try to detect that with following the code but it don't work.

m_framer are an instance of Mpeg2FrameConstructor.

UMC::VideoStreamInfo* vinfo = (UMC::VideoStreamInfo*) m_framer.GetInfo()->m_pStreamInfo;

if (vinfo->videoInfo.m_iSAWidth  != lastSAWidth) {

}

This is done for every frame from the framer.

Is this supposed to work or are there a better way?

Any help is appriciated

Thanks

1 contribution / 0 nouveau(x)
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.