Signed-off-by: Paul B Mahol <onemda@gmail.com>
Paul B Mahol authored on 2013/09/06 23:04:48... | ... |
@@ -70,16 +70,8 @@ static int config_input(AVFilterLink *inlink) |
70 | 70 |
{ |
71 | 71 |
AVFilterContext *ctx = inlink->dst; |
72 | 72 |
FieldOrderContext *s = ctx->priv; |
73 |
- int plane; |
|
74 | 73 |
|
75 |
- /** full an array with the number of bytes that the video |
|
76 |
- * data occupies per line for each plane of the input video */ |
|
77 |
- for (plane = 0; plane < 4; plane++) { |
|
78 |
- s->line_size[plane] = av_image_get_linesize(inlink->format, inlink->w, |
|
79 |
- plane); |
|
80 |
- } |
|
81 |
- |
|
82 |
- return 0; |
|
74 |
+ return av_image_fill_linesizes(s->line_size, inlink->format, inlink->w); |
|
83 | 75 |
} |
84 | 76 |
|
85 | 77 |
static int filter_frame(AVFilterLink *inlink, AVFrame *frame) |