#87 ImplAAFSourceReference::SetChannelIDs() does not work

closed-fixed
None
5
2005-04-25
2005-04-22
No

ImplAAFSourceReference::SetChannelIDs() passes the its
numberElements parameter directly to
_channelIDs.copyToBuffer(), which is expecting a byte
count not a number of elements. As a result, nothing is
set if you call IAAFSourceReference2::SetChannelIDs()
with less than 4 channel IDs, etc.

The fix appears to be to pass (numberElements *
sizeof(aafUInt32)) instead of numberElements.

Discussion

  • Phil Tudor

    Phil Tudor - 2005-04-25
    • assigned_to: nobody --> stuart_hc
     
  • Stuart Cunningham

    Logged In: YES
    user_id=692703

    Confirmed as a bug in ImplAAFSourceReference.cpp. The
    numberElements parameter was being treated as a size
    internally instead of being multiplied by element-size to
    calculate array sizes.
    Also affected SetMonoSourceSlotIDs() in same fashion.

    Fixed in revision 1.27 of ImplAAFSourceReference.cpp

     
  • Stuart Cunningham

    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks