Community
cancel
Showing results for 
Search instead for 
Did you mean: 
elsparro
Beginner
44 Views

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

0 Kudos
0 Replies
Reply