aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-10-25 23:15:54 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2018-10-27 22:39:27 +0200
commitcd34c6a57ee6d12b30e6283db94a7e44fbedb244 (patch)
treee9c35b71e3e24cd295f370043e33613d2fa1a96e /libavfilter
parent718044dc198710f9d6e70d94affd5f8a1a52430f (diff)
downloadffmpeg-cd34c6a57ee6d12b30e6283db94a7e44fbedb244.tar.gz
avfilter/vf_pixdesctest: Use 32bit read/write
This is needed for processing 32bit floats Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_pixdesctest.c10
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);
}
}