[FFmpeg-cvslog] lavfi/pp: set out frame size.

Clément Bœsch git at videolan.org
Sat Jun 8 23:24:02 CEST 2013


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Sat Jun  8 23:23:28 2013 +0200| [b77e58aad331e81623013f6476ae366d5d2e80ee] | committer: Clément Bœsch

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).

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b77e58aad331e81623013f6476ae366d5d2e80ee
---

 libavfilter/vf_pp.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/vf_pp.c b/libavfilter/vf_pp.c
index 3ab46b8..eebc232 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,



More information about the ffmpeg-cvslog mailing list