Skip to content
Snippets Groups Projects
Commit 48bbae00 authored by Victorien Le Couviour--Tuffet's avatar Victorien Le Couviour--Tuffet Committed by Jean-Baptiste Kempf
Browse files

sharpen: assert that SHARPEN_FRAME macro's maxval parameter is positive


Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 56dfa401
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@
# include "config.h"
#endif
#include <assert.h>
#include <vlc_common.h>
#include <vlc_atomic.h>
#include <vlc_plugin.h>
......@@ -160,6 +161,7 @@ static void Destroy( vlc_object_t *p_this )
#define SHARPEN_FRAME(maxval, data_t) \
do \
{ \
assert((maxval) >= 0); \
data_t *restrict p_src = (data_t *)p_pic->p[Y_PLANE].p_pixels; \
data_t *restrict p_out = (data_t *)p_outpic->p[Y_PLANE].p_pixels; \
const unsigned data_sz = sizeof(data_t); \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment