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 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.