The const makes no sense and is later cast away.
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -327,7 +327,7 @@ static void haldclutsrc_fill_picture(AVFilterContext *ctx, AVFrame *frame) · 326 unmodified lines | ||
| 327 | 327 | float scale; |
| 328 | 328 | const int w = frame->width; |
| 329 | 329 | const int h = frame->height; |
| 330 | − const uint8_t *data = frame->data[0]; | |
| 330 | + uint8_t *data = frame->data[0]; | |
| 331 | 331 | const int linesize = frame->linesize[0]; |
| 332 | 332 | const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(frame->format); |
| 333 | 333 | const int depth = desc->comp[0].depth; |