From cd34c6a57ee6d12b30e6283db94a7e44fbedb244 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 25 Oct 2018 23:15:54 +0200 Subject: avfilter/vf_pixdesctest: Use 32bit read/write This is needed for processing 32bit floats Signed-off-by: Michael Niedermayer --- libavfilter/vf_pixdesctest.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libavfilter/vf_pixdesctest.c') diff --git a/libavfilter/vf_pixdesctest.c b/libavfilter/vf_pixdesctest.c index 2d0749e20b..680d1a772a 100644 --- a/libavfilter/vf_pixdesctest.c +++ b/libavfilter/vf_pixdesctest.c @@ -31,7 +31,7 @@ typedef struct PixdescTestContext { const AVPixFmtDescriptor *pix_desc; - uint16_t *line; + uint32_t *line; } PixdescTestContext; static av_cold void uninit(AVFilterContext *ctx) @@ -89,17 +89,17 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) const int h1 = c == 1 || c == 2 ? ch : h; for (i = 0; i < h1; i++) { - av_read_image_line(priv->line, + av_read_image_line2(priv->line, (void*)in->data, in->linesize, priv->pix_desc, - 0, i, c, w1, 0); + 0, i, c, w1, 0, 4); - av_write_image_line(priv->line, + av_write_image_line2(priv->line, out->data, out->linesize, priv->pix_desc, - 0, i, c, w1); + 0, i, c, w1, 4); } } -- cgit v1.2.3