mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02: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
@ -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…
x
Reference in New Issue
Block a user