If a frame has both compression and encryption, since we currently

don't support encrypted frames, don't try to decompress it.  Decryption
is supposed to be applied before decompression, so currently the decompression
isn't possible.

BUG:112919


git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@503234 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Scott Wheeler
2006-01-28 14:00:48 +00:00
parent 59b9831868
commit 4841a5c39c

View File

@ -168,7 +168,9 @@ ByteVector Frame::fieldData(const ByteVector &frameData) const
}
#if HAVE_ZLIB
if(d->header->compression()) {
if(d->header->compression() &&
!d->header->encryption())
{
ByteVector data(frameDataLength);
uLongf uLongTmp = frameDataLength;
::uncompress((Bytef *) data.data(),