Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

MPEG2VideoEncoder access violations

OTorg
New Contributor III
640 Views

MPEG2VideoEncoderBase::Init() calls CreateFrameBuffer() to initialize/reinitialize internal frame buffers in the following cases only (OR):

  1. first initialization
  2. width/height changed
  3. color format changed

It doesn't take into account IPDistance parameter changes. So, the following code:

MPEG2VideoEncoder.Init( IPDistance = 1 );
... do some encoding work A ...
MPEG2VideoEncoder.Init( IPDistance = 3 ); // or Reset, then Init
... do some encoding work B ...

will get access violations or __non_rtti_object exceptions at work B (inside MPEG2VideoEncoderBase::FrameDone, LoadToBuffer), because the real size of frames.buf_B is 0 (instead of supposed size = 2).

0 Kudos
2 Replies
Chao_Y_Intel
Moderator
640 Views
Hello, Thanks for you reported. I tracked this problem into to our defect database. Regards, Chao
0 Kudos
OTorg
New Contributor III
640 Views
Ok. And please look at one more defect: http://software.intel.com/en-us/forums/topic/343019
0 Kudos
Reply