mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-13 19:05:37 +00:00
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).
This commit is contained in:
parent
2a91038e13
commit
b77e58aad3
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue