Commit eeaf19ce authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_stereo3d: simplify blank calculations and check height

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 040ddd27
...@@ -445,10 +445,12 @@ static int config_output(AVFilterLink *outlink) ...@@ -445,10 +445,12 @@ static int config_output(AVFilterLink *outlink)
s->out.row_right = s->height; s->out.row_right = s->height;
break; break;
case HDMI: case HDMI:
if (s->in.height <= 720) if (s->height != 720 && s->height != 1080) {
s->blanks = 30; av_log(ctx, AV_LOG_ERROR, "Only 720 and 1080 height supported\n");
else return AVERROR(EINVAL);
s->blanks = 45; }
s->blanks = s->height / 24;
s->out.height = s->height * 2 + s->blanks; s->out.height = s->height * 2 + s->blanks;
s->out.row_right = s->height + s->blanks; s->out.row_right = s->height + s->blanks;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment