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
2240 in_transform = xyz_to_stereographic;2240 in_transform = xyz_to_stereographic;
2241 err = 0;2241 err = 0;
2242 wf = inlink->w;2242 wf = inlink->w;
2243 hf = inlink->h;2243 hf = inlink->h / 2.f;
2244 break;2244 break;
2245 default:2245 default:
2246 av_log(ctx, AV_LOG_ERROR, "Specified input format is not handled.\n");2246 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
2300 case STEREOGRAPHIC:2300 case STEREOGRAPHIC:
2301 out_transform = stereographic_to_xyz;2301 out_transform = stereographic_to_xyz;
2302 err = prepare_stereographic_out(ctx);2302 err = prepare_stereographic_out(ctx);
2303 w = FFMAX(roundf(wf), roundf(hf));2303 w = roundf(wf);
2304 h = w;2304 h = roundf(hf * 2.f);
2305 break;2305 break;
2306 default:2306 default:
2307 av_log(ctx, AV_LOG_ERROR, "Specified output format is not handled.\n");2307 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