lavfi/vf_scale_vaapi: set output SAR

pull/275/head
Rodger Combs 7 years ago
parent fb3fd4d506
commit 381a4820c6
  1. 5
      libavfilter/vf_scale_vaapi.c

@ -240,6 +240,11 @@ static int scale_vaapi_config_output(AVFilterLink *outlink)
goto fail; goto fail;
} }
if (inlink->sample_aspect_ratio.num)
outlink->sample_aspect_ratio = av_mul_q((AVRational){outlink->h * inlink->w, outlink->w * inlink->h}, inlink->sample_aspect_ratio);
else
outlink->sample_aspect_ratio = inlink->sample_aspect_ratio;
av_freep(&hwconfig); av_freep(&hwconfig);
av_hwframe_constraints_free(&constraints); av_hwframe_constraints_free(&constraints);
return 0; return 0;

Loading…
Cancel
Save