cinecert / asdcplib

AS-DCP and AS-02 File Access Library
Other
72 stars 55 forks source link

AS_02::IAB::MXFReader does not work properly #134

Open izwb003 opened 9 months ago

izwb003 commented 9 months ago

I am trying to use the as-02 extension of asdcplib to read IAB frames in IMF IAB. My implementation is similar to this:

AS_02::IAB::MXFReader reader(fileReader);
reader.OpenRead(inputFileName);
AS_02::IAB::MXFReader::Frame frame;
reader.ReadFrame(0, frame);

Then strange thing happens. (const char*)frame.second just gives me something strange. It contains some disorganized byte sequences, and obviously not the content of a IAB frame.

An earlier version, like commit d417531, works fine. Did I make any mistakes?

Also here is a little question: Why I have to pass a Kumu::IFileReaderFactory when constructing MXFReader? Is it necessary? If not, can we still provide a construction method that doesn't require it like earlier versions to simplify usage? Thank you.

Best Regards.