mirror of https://git.ffmpeg.org/ffmpeg.git
lavfi/fieldorder: use av_image_fill_linesizes()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
9b35bee696
commit
df7e3572c3
|
@ -70,16 +70,8 @@ static int config_input(AVFilterLink *inlink)
|
||||||
{
|
{
|
||||||
AVFilterContext *ctx = inlink->dst;
|
AVFilterContext *ctx = inlink->dst;
|
||||||
FieldOrderContext *s = ctx->priv;
|
FieldOrderContext *s = ctx->priv;
|
||||||
int plane;
|
|
||||||
|
|
||||||
/** full an array with the number of bytes that the video
|
return av_image_fill_linesizes(s->line_size, inlink->format, inlink->w);
|
||||||
* data occupies per line for each plane of the input video */
|
|
||||||
for (plane = 0; plane < 4; plane++) {
|
|
||||||
s->line_size[plane] = av_image_get_linesize(inlink->format, inlink->w,
|
|
||||||
plane);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
||||||
|
|
Loading…
Reference in New Issue