Unified · Split
| @@ -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"); |