[libvpx] Fix scan-build 14
This commit is contained in:
parent
503c19e12b
commit
681c61ad32
|
@ -64,6 +64,9 @@ static int remap_prob(int v, int m) {
|
|||
228, 229, 17, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241,
|
||||
18, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 19,
|
||||
};
|
||||
|
||||
assert(m > 0);
|
||||
|
||||
v--;
|
||||
m--;
|
||||
if ((m << 1) <= MAX_PROB)
|
||||
|
|
|
@ -167,6 +167,8 @@ static void scale1d_c(const unsigned char *source, int source_step,
|
|||
|
||||
(void)source_length;
|
||||
|
||||
assert(dest_scale);
|
||||
|
||||
/* These asserts are needed if there are boundary issues... */
|
||||
/*assert ( dest_scale > source_scale );*/
|
||||
/*assert ( (source_length-1) * dest_scale >= (dest_length-1) * source_scale
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
#ifndef VPX_VPX_SCALE_VPX_SCALE_H_
|
||||
#define VPX_VPX_SCALE_VPX_SCALE_H_
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "vpx_scale/yv12config.h"
|
||||
|
||||
extern void vpx_scale_frame(YV12_BUFFER_CONFIG *src, YV12_BUFFER_CONFIG *dst,
|
||||
|
|
Loading…
Reference in New Issue