History

avfilter/vf_v360: fix setting default height for stereographic

Paul B Mahol committed 7 years ago

Commit 24d4eea1 parent 801fd6e1 file · +3 −3Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_v360.c+3−3
@@ -2240,7 +2240,7 @@ static int config_output(AVFilterLink *outlink) · 2239 unmodified lines
22402240 in_transform = xyz_to_stereographic;
22412241 err = 0;
22422242 wf = inlink->w;
2243− hf = inlink->h;
2243+ hf = inlink->h / 2.f;
22442244 break;
22452245 default:
22462246 av_log(ctx, AV_LOG_ERROR, "Specified input format is not handled.\n");
@@ -2300,8 +2300,8 @@ static int config_output(AVFilterLink *outlink) · 53 unmodified lines
23002300 case STEREOGRAPHIC:
23012301 out_transform = stereographic_to_xyz;
23022302 err = prepare_stereographic_out(ctx);
2303− w = FFMAX(roundf(wf), roundf(hf));
2304− h = w;
2303+ w = roundf(wf);
2304+ h = roundf(hf * 2.f);
23052305 break;
23062306 default:
23072307 av_log(ctx, AV_LOG_ERROR, "Specified output format is not handled.\n");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t