diff options
| author | jhurst <jhurst@cinecert.com> | 2006-01-06 07:19:32 +0000 |
|---|---|---|
| committer | jhurst <> | 2006-01-06 07:19:32 +0000 |
| commit | 6e23666cb6184999efc74577cfb1b524181ba5df (patch) | |
| tree | 0400f487b37da3e263f93af8afcfacb318d24087 /src/Index.cpp | |
| parent | a526fabf937848823b02d5486a6ec38f8442bb1c (diff) | |
bugfix in indexing
Diffstat (limited to 'src/Index.cpp')
| -rwxr-xr-x | src/Index.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Index.cpp b/src/Index.cpp index 96c81ed..b7bdc33 100755 --- a/src/Index.cpp +++ b/src/Index.cpp @@ -153,7 +153,7 @@ ASDCP::MXF::IndexTableSegment::Dump(FILE* stream) const char* ASDCP::MXF::IndexTableSegment::DeltaEntry::ToString(char* str_buf) const { - sprintf(str_buf, "%3i %-3hu %-3lu", PosTableIndex, Slice, ElementData); + snprintf(str_buf, IdentBufferLen, "%3i %-3hu %-3lu", PosTableIndex, Slice, ElementData); return str_buf; } @@ -203,7 +203,7 @@ ASDCP::MXF::IndexTableSegment::IndexEntry::ToString(char* str_buf) const txt_flags[3] = ( (Flags & 0x10) != 0 ) ? 'b' : ' '; txt_flags[4] = ( (Flags & 0x0f) == 3 ) ? 'B' : ( (Flags & 0x0f) == 2 ) ? 'P' : 'I'; - sprintf(str_buf, "%3i %-3hu %s %s", + snprintf(str_buf, IdentBufferLen, "%3i %-3hu %s %s", TemporalOffset, KeyFrameOffset, txt_flags, i64sz(StreamOffset, intbuf)); |
