Commit b65ea6ab authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_tinterlace: fix image alignment

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent a678d667
...@@ -131,7 +131,7 @@ static int config_out_props(AVFilterLink *outlink) ...@@ -131,7 +131,7 @@ static int config_out_props(AVFilterLink *outlink)
if (ff_fmt_is_in(outlink->format, full_scale_yuvj_pix_fmts)) if (ff_fmt_is_in(outlink->format, full_scale_yuvj_pix_fmts))
black[0] = black[3] = 0; black[0] = black[3] = 0;
ret = av_image_alloc(tinterlace->black_data, tinterlace->black_linesize, ret = av_image_alloc(tinterlace->black_data, tinterlace->black_linesize,
outlink->w, outlink->h, outlink->format, 1); outlink->w, outlink->h, outlink->format, 16);
if (ret < 0) if (ret < 0)
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment