diff options
author | Jim Bankoski <jimbankoski@google.com> | 2012-09-11 16:30:19 -0700 |
---|---|---|
committer | Jim Bankoski <jimbankoski@google.com> | 2012-09-11 16:34:36 -0700 |
commit | 7b7ca65bfc15b1dc47a0f1063b66d0e85fba849b (patch) | |
tree | 828a05e9e5ffa6bb0ce61bea9a60ef5252c58f7f /vp8/decoder/onyxd_int.h | |
parent | 2ff6d35064919a8ad9e56150a19dc7ccd3ec2e7e (diff) | |
download | libvpx-7b7ca65bfc15b1dc47a0f1063b66d0e85fba849b.tar libvpx-7b7ca65bfc15b1dc47a0f1063b66d0e85fba849b.tar.gz libvpx-7b7ca65bfc15b1dc47a0f1063b66d0e85fba849b.tar.bz2 libvpx-7b7ca65bfc15b1dc47a0f1063b66d0e85fba849b.zip |
fix valgrind mem leak on garbage decode
Multiple decoders were getting allocated per frame.
If the decoder crashed we exitted with out freeing
them and the next time in we'd allocate over.
This fix removes the allocation and just has 8
boolcoders in the pbi structure
Change-Id: I638b5bda23b622b43b7992aec21dd7cf6f6278da
Diffstat (limited to 'vp8/decoder/onyxd_int.h')
-rw-r--r-- | vp8/decoder/onyxd_int.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/decoder/onyxd_int.h b/vp8/decoder/onyxd_int.h index 240f5f727..e6c814acc 100644 --- a/vp8/decoder/onyxd_int.h +++ b/vp8/decoder/onyxd_int.h @@ -77,7 +77,7 @@ typedef struct VP8D_COMP /* end of threading data */ #endif - vp8_reader *mbc; + vp8_reader mbc[8]; int64_t last_time_stamp; int ready_for_new_data; |