aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_pp.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-06-08 23:23:28 +0200
committerClément Bœsch <ubitux@gmail.com>2013-06-08 23:23:30 +0200
commitb77e58aad331e81623013f6476ae366d5d2e80ee (patch)
treeb0fc08ef3592be7dc98ca59d22715f414a2fd121 /libavfilter/vf_pp.c
parent2a91038e13a00897fde89ad65a36012985687793 (diff)
downloadffmpeg-b77e58aad331e81623013f6476ae366d5d2e80ee.tar.gz
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).
Diffstat (limited to 'libavfilter/vf_pp.c')
-rw-r--r--libavfilter/vf_pp.c2
1 files changed, 2 insertions, 0 deletions
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,