| Index: source/libvpx/vp9/encoder/vp9_lookahead.c
|
| ===================================================================
|
| --- source/libvpx/vp9/encoder/vp9_lookahead.c (revision 251189)
|
| +++ source/libvpx/vp9/encoder/vp9_lookahead.c (working copy)
|
| @@ -11,9 +11,12 @@
|
| #include <stdlib.h>
|
|
|
| #include "./vpx_config.h"
|
| +
|
| #include "vp9/common/vp9_common.h"
|
| +
|
| #include "vp9/encoder/vp9_extend.h"
|
| #include "vp9/encoder/vp9_lookahead.h"
|
| +#include "vp9/encoder/vp9_onyx_int.h"
|
|
|
| struct lookahead_ctx {
|
| unsigned int max_sz; /* Absolute size of the queue */
|
| @@ -173,7 +176,6 @@
|
| int index) {
|
| struct lookahead_entry *buf = NULL;
|
|
|
| - assert(index < (int)ctx->max_sz);
|
| if (index < (int)ctx->sz) {
|
| index += ctx->read_idx;
|
| if (index >= (int)ctx->max_sz)
|
|
|