mirror of https://code.videolan.org/videolan/vlc
video_output: always set the SPU destination in the placed video for SPU-handling displays
It doesn't matter if we scale up or down. They do the same kind of scaling.
This commit is contained in:
parent
bb88cd5aa9
commit
63855d998b
|
@ -1178,14 +1178,12 @@ static int PrerenderPicture(vout_thread_sys_t *sys, picture_t *filtered,
|
|||
vout_display_PlacePicture(&place, vd->source, &vd->cfg->display);
|
||||
|
||||
fmt_spu = *vd->source;
|
||||
if (fmt_spu.i_width * fmt_spu.i_height < place.width * place.height) {
|
||||
fmt_spu.i_sar_num = vd->cfg->display.sar.num;
|
||||
fmt_spu.i_sar_den = vd->cfg->display.sar.den;
|
||||
fmt_spu.i_width =
|
||||
fmt_spu.i_visible_width = place.width;
|
||||
fmt_spu.i_height =
|
||||
fmt_spu.i_visible_height = place.height;
|
||||
}
|
||||
fmt_spu.i_sar_num = vd->cfg->display.sar.num;
|
||||
fmt_spu.i_sar_den = vd->cfg->display.sar.den;
|
||||
fmt_spu.i_width =
|
||||
fmt_spu.i_visible_width = place.width;
|
||||
fmt_spu.i_height =
|
||||
fmt_spu.i_visible_height = place.height;
|
||||
} else {
|
||||
if (blending_before_converter) {
|
||||
fmt_spu = *vd->source;
|
||||
|
|
Loading…
Reference in New Issue