diff options
Diffstat (limited to 'libavfilter/vf_pixdesctest.c')
-rw-r--r-- | libavfilter/vf_pixdesctest.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); } } |