Browse Source

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).
tags/n2.0
Clément Bœsch 12 years ago
parent
commit
b77e58aad3
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavfilter/vf_pp.c

+ 2
- 0
libavfilter/vf_pp.c View File

@@ -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,


Loading…
Cancel
Save