Community
cancel
Showing results for 
Search instead for 
Did you mean: 
OTorg
New Contributor II
56 Views

MPEG2VideoEncoderBase::FormatMismatch() inaccuracy

YFrameHSize/UVFrameHSize values are compared with GetPlanePitch().

But YFrameHSize/UVFrameHSize are derived from m_iWidth, not pitch. Pitch of subsequent frames can be greater than width and it is quite normal.

So, YFrameHSize/UVFrameHSize values should be compared with width value(s).

0 Kudos
0 Replies
Reply