History

avfilter/vf_super2xsai: constify src pointer

Paul B Mahol committed 5 years ago

Commit c2ee42e1 parent b51eae11 file · +2 −2Browse files

Unified · Split

libavfilter/vf_super2xsai.c+2−2
@@ -54,14 +54,14 @@ typedef struct Super2xSaIContext { · 53 unmodified lines
5454 + ((((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)
5555
5656 static void super2xsai(AVFilterContext *ctx,
57− uint8_t *src, int src_linesize,
57+ const uint8_t *src, int src_linesize,
5858 uint8_t *dst, int dst_linesize,
5959 int width, int height)
6060 {
6161 Super2xSaIContext *s = ctx->priv;
6262 unsigned int x, y;
6363 uint32_t color[4][4];
64− unsigned char *src_line[4];
64+ const uint8_t *src_line[4];
6565 const int bpp = s->bpp;
6666 const uint32_t hi_pixel_mask = s->hi_pixel_mask;
6767 const uint32_t lo_pixel_mask = s->lo_pixel_mask;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t