mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-22 11:38:29 +00:00
avfilter/vf_stereo3d: simplify blank calculations and check height
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
040ddd27bf
commit
eeaf19cee9
@ -445,10 +445,12 @@ static int config_output(AVFilterLink *outlink)
|
||||
s->out.row_right = s->height;
|
||||
break;
|
||||
case HDMI:
|
||||
if (s->in.height <= 720)
|
||||
s->blanks = 30;
|
||||
else
|
||||
s->blanks = 45;
|
||||
if (s->height != 720 && s->height != 1080) {
|
||||
av_log(ctx, AV_LOG_ERROR, "Only 720 and 1080 height supported\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
||||
s->blanks = s->height / 24;
|
||||
s->out.height = s->height * 2 + s->blanks;
|
||||
s->out.row_right = s->height + s->blanks;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user