[Live-devel] MPEG1or2FileServerDemux::createNew Rise exeption

Victor V. Vinokurov victor at dialog.su
Wed May 20 02:59:12 PDT 2009


i've try to get file duration of mpeg1 video file like this:

int VIDEOMC_API GetFileDuration(const char* inputFileName)
{
  TaskScheduler* scheduler = BasicTaskScheduler::createNew();
  BasicUsageEnvironment* env = BasicUsageEnvironment::createNew(*scheduler);
  MPEG1or2FileServerDemux* demux =
MPEG1or2FileServerDemux::createNew(*env, inputFileName, false);
  if(demux)
    return int(demux->fileDuration());

  return 0;
}

but in VS2008 line MPEG1or2FileServerDemux::createNew rise exeption:
First-chance exception at 0x7c812afb in testvideomc.exe: Microsoft C++
exception: int at memory location 0x0011f880..
and program abnormally closed after this.

what this can mean?

-- 
See you!
---
Vityusha V. Vinokurov - programmer
mailto:victor at dialog.su
http://www.dialog.su


More information about the live-devel mailing list