[FFmpeg-cvslog] avfilter/vf_super2xsai: constify src pointer
Paul B Mahol
git at videolan.org
Thu Jan 21 14:41:29 EET 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Jan 21 13:05:57 2021 +0100| [c2ee42e0323943499f5c2ae0dcdc6cccfc09d749] | committer: Paul B Mahol
avfilter/vf_super2xsai: constify src pointer
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c2ee42e0323943499f5c2ae0dcdc6cccfc09d749
---
libavfilter/vf_super2xsai.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_super2xsai.c b/libavfilter/vf_super2xsai.c
index 87eec04da8..4233f02388 100644
--- a/libavfilter/vf_super2xsai.c
+++ b/libavfilter/vf_super2xsai.c
@@ -54,14 +54,14 @@ typedef struct Super2xSaIContext {
+ ((((A & q_lo_pixel_mask) + (B & q_lo_pixel_mask) + (C & q_lo_pixel_mask) + (D & q_lo_pixel_mask)) >> 2) & q_lo_pixel_mask)
static void super2xsai(AVFilterContext *ctx,
- uint8_t *src, int src_linesize,
+ const uint8_t *src, int src_linesize,
uint8_t *dst, int dst_linesize,
int width, int height)
{
Super2xSaIContext *s = ctx->priv;
unsigned int x, y;
uint32_t color[4][4];
- unsigned char *src_line[4];
+ const uint8_t *src_line[4];
const int bpp = s->bpp;
const uint32_t hi_pixel_mask = s->hi_pixel_mask;
const uint32_t lo_pixel_mask = s->lo_pixel_mask;
More information about the ffmpeg-cvslog
mailing list