summaryrefslogtreecommitdiffstats
path: root/decoder/impeg2d_api.h
diff options
context:
space:
mode:
authorVenkatarama NG. Avadhani <venkatarama.avadhani@ittiam.com>2018-02-15 09:33:38 +0530
committerRay Essick <essick@google.com>2018-02-26 11:52:19 -0800
commit1532e414898ae7c0abc44cab66681054edceb1f7 (patch)
tree98910172ec1d04b77978d52a2a0cfac319f251ff /decoder/impeg2d_api.h
parent385836df2534397bae8e1b9d5658518aa98249e5 (diff)
downloadplatform_external_libmpeg2-1532e414898ae7c0abc44cab66681054edceb1f7.tar.gz
platform_external_libmpeg2-1532e414898ae7c0abc44cab66681054edceb1f7.tar.bz2
platform_external_libmpeg2-1532e414898ae7c0abc44cab66681054edceb1f7.zip
Adding Internal Input Buffer
Allocating a input buffer in the decoder context and copying all input to this buffer before using. This will ensure that we do not access memory out of bounds because of our bit read optimisations. Bug: 72764648 Test: poc before/after Change-Id: Ide6c58291fa1d0472a9589c95aba231d13122a19
Diffstat (limited to 'decoder/impeg2d_api.h')
-rw-r--r--decoder/impeg2d_api.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/impeg2d_api.h b/decoder/impeg2d_api.h
index 3fa098b..f239637 100644
--- a/decoder/impeg2d_api.h
+++ b/decoder/impeg2d_api.h
@@ -50,7 +50,7 @@
-#define NUM_MEM_RECORDS 4 * MAX_THREADS + NUM_INT_FRAME_BUFFERS + 5 + 2
+#define NUM_MEM_RECORDS 4 * MAX_THREADS + NUM_INT_FRAME_BUFFERS + 5 + 2 + 1
#define SETBIT(a,i) ((a) |= (1 << i))