From b77e58aad331e81623013f6476ae366d5d2e80ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Sat, 8 Jun 2013 23:23:28 +0200 Subject: [PATCH] lavfi/pp: set out frame size. w/h from input frame are not copied in av_frame_copy_props(). This commit avoids a mismatch between aligned_[wh] and outbuf->{width,height} (and thus avoids triggering an assert in avfilter because of this). --- libavfilter/vf_pp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/vf_pp.c b/libavfilter/vf_pp.c index 3ab46b8abf..eebc232db4 100644 --- a/libavfilter/vf_pp.c +++ b/libavfilter/vf_pp.c @@ -125,6 +125,8 @@ static int pp_filter_frame(AVFilterLink *inlink, AVFrame *inbuf) return AVERROR(ENOMEM); } av_frame_copy_props(outbuf, inbuf); + outbuf->width = inbuf->width; + outbuf->height = inbuf->height; qp_table = av_frame_get_qp_table(inbuf, &qstride, &qp_type); pp_postprocess((const uint8_t **)inbuf->data, inbuf->linesize,