From: Alexey K. <akh...@us...> - 2007-01-26 23:20:17
|
Update of /cvsroot/aaf/AAF/ref-impl/src/OM In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv20756 Modified Files: OMKLVStoredStreamFilter.cpp Log Message: In write() do not initialize the stream label if it appears to be set. Index: OMKLVStoredStreamFilter.cpp =================================================================== RCS file: /cvsroot/aaf/AAF/ref-impl/src/OM/OMKLVStoredStreamFilter.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** OMKLVStoredStreamFilter.cpp 10 Jan 2007 20:25:50 -0000 1.2 --- OMKLVStoredStreamFilter.cpp 26 Jan 2007 23:20:11 -0000 1.3 *************** *** 116,122 **** if (!_keyWritten) { ! OMKLVKey key = {0x06, 0x0e, 0x2b, 0x34, 0x01, 0x02, 0x01, 0x01, ! 0x0e, 0x04, 0x03, 0x01, 0xff, 0xff, 0xff, 0xff}; ! _stream->setLabel(key); _stream->setPosition(0); OMKLVStoredStream::writeKLVKey(*_stream, key); --- 116,126 ---- if (!_keyWritten) { ! OMKLVKey key = _stream->label(); ! if (key == nullOMKLVKey) { ! OMKLVKey defalutKey = {0x06, 0x0e, 0x2b, 0x34, 0x01, 0x02, 0x01, 0x01, ! 0x0e, 0x04, 0x03, 0x01, 0xff, 0xff, 0xff, 0xff}; ! key = defalutKey; ! _stream->setLabel(key); ! } _stream->setPosition(0); OMKLVStoredStream::writeKLVKey(*_stream, key); |