Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -2240,7 +2240,7 @@ static int config_output(AVFilterLink *outlink) · 2239 unmodified lines | ||
| 2240 | 2240 | in_transform = xyz_to_stereographic; |
| 2241 | 2241 | err = 0; |
| 2242 | 2242 | wf = inlink->w; |
| 2243 | − hf = inlink->h; | |
| 2243 | + hf = inlink->h / 2.f; | |
| 2244 | 2244 | break; |
| 2245 | 2245 | default: |
| 2246 | 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 | 2300 | case STEREOGRAPHIC: |
| 2301 | 2301 | out_transform = stereographic_to_xyz; |
| 2302 | 2302 | 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); | |
| 2305 | 2305 | break; |
| 2306 | 2306 | default: |
| 2307 | 2307 | av_log(ctx, AV_LOG_ERROR, "Specified output format is not handled.\n"); |