diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-09-06 14:04:48 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-09-06 17:45:31 +0000 |
commit | df7e3572c333025f1333f7b2a2c0d2eecbf00937 (patch) | |
tree | 22f5af2cc9bd0ae440fcd6065f4c6b2895ce9c45 /libavfilter/vf_fieldorder.c | |
parent | 9b35bee696739eb6774bdba30504c51132e2a934 (diff) | |
download | ffmpeg-df7e3572c333025f1333f7b2a2c0d2eecbf00937.tar.gz |
lavfi/fieldorder: use av_image_fill_linesizes()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_fieldorder.c')
-rw-r--r-- | libavfilter/vf_fieldorder.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libavfilter/vf_fieldorder.c b/libavfilter/vf_fieldorder.c index 16310ce6d8..7afdf9f18d 100644 --- a/libavfilter/vf_fieldorder.c +++ b/libavfilter/vf_fieldorder.c @@ -70,16 +70,8 @@ static int config_input(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; FieldOrderContext *s = ctx->priv; - int plane; - /** full an array with the number of bytes that the video - * 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; + return av_image_fill_linesizes(s->line_size, inlink->format, inlink->w); } static int filter_frame(AVFilterLink *inlink, AVFrame *frame) |