assert(m_ClipEssenceBegin);
ui64_t offset = FrameNum * m_BytesPerFrame;
- ui64_t position = m_ClipEssenceBegin + offset;
+ Kumu::fpos_t position = m_ClipEssenceBegin + offset;
Result_t result = RESULT_OK;
if ( m_File.Tell() != position )
// get absolute frame position and go read the frame's key and length
Result_t result = RESULT_OK;
- if ( TmpEntry.StreamOffset != m_LastPosition )
+ if ( (Kumu::fpos_t) TmpEntry.StreamOffset != m_LastPosition )
{
m_LastPosition = TmpEntry.StreamOffset;
result = m_File.Seek(TmpEntry.StreamOffset);
streamOffset = body_offset + TmpEntry.StreamOffset;
temporalOffset = TmpEntry.TemporalOffset;
keyFrameOffset = TmpEntry.KeyFrameOffset;
-
+
return RESULT_OK;
}
m_File.Close();
}
};
-
+
//------------------------------------------------------------------------------------------
//
MPTrack.Clip->Duration.set_has_value();
m_DurationUpdateList.push_back(&(MPTrack.Clip->Duration.get()));
-
+
//
// File (Source) Package
//
m_DurationUpdateList.push_back(&(MPTrack.Clip->Duration));
-
+
//
// File (Source) Package
//
}
};
-
+
}/// namespace MXF
//------------------------------------------------------------------------------------------
std::string tmp_str;
char tmp_buf[64];
- for ( int i = 0; i < RGBAValueLength && m_value[i] != 0; i += 2 )
+ for ( size_t i = 0; i < RGBAValueLength && m_value[i] != 0; i += 2 )
{
snprintf(tmp_buf, 64, "%c(%d)", get_char_for_code(m_value[i]), m_value[i+1]);
{
result = show_file_info(Options);
- for ( int i = 1; ASDCP_SUCCESS(result) && i < Options.file_count; ++i )
+ for ( ui32_t i = 1; ASDCP_SUCCESS(result) && i < Options.file_count; ++i )
{
Options.filenames[0] = Options.filenames[i]; // oh-so hackish
result = show_file_info(Options);
// fill the frame buffer with a frame of pink noise
byte_t *p = FrameBuffer.Data();
- for ( int i = 0; i < samples_per_frame; ++i )
+ for ( ui32_t i = 0; i < samples_per_frame; ++i )
{
float pink_sample = pink_filter.GetNextSample(lcg.GetNextSample());
ScalePackSample(pink_sample, p, ADesc.BlockAlign);