summaryrefslogtreecommitdiff
path: root/src/KM_prng.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2006-11-21 23:58:00 +0000
committerjhurst <>2006-11-21 23:58:00 +0000
commitf0476a3789369459fb91076af4a29372d86d7622 (patch)
tree6502d6fc94619371219d23c7522fd5ae7e6525bc /src/KM_prng.cpp
parent9f903fec9d68fc58399a925b0311af3dc9a3faf2 (diff)
MPEG parser fixes: zero run-in patch, header buffer increase
Diffstat (limited to 'src/KM_prng.cpp')
-rwxr-xr-xsrc/KM_prng.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/KM_prng.cpp b/src/KM_prng.cpp
index 094ee1b..e710d9a 100755
--- a/src/KM_prng.cpp
+++ b/src/KM_prng.cpp
@@ -135,8 +135,7 @@ public:
{
byte_t tmp[RNG_BLOCK_SIZE];
AES_encrypt(m_ctr_buf, tmp, &m_Context);
- *(ui32_t*)(m_ctr_buf + 12) += 1;
- memcpy(buf, tmp, len - gen_count);
+ memcpy(buf + gen_count, tmp, len - gen_count);
}
}
};