Commit bf5bc83e authored by Felix Abecassis's avatar Felix Abecassis Committed by Jean-Baptiste Kempf

vout: assume aspect ratio is 1:1 if information is missing

Avoid signalling a change of aspect-ratio when it only changed from
1:1 to 0:0.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 167a7a53
......@@ -1175,8 +1175,9 @@ void vout_SetDisplayAspect(vout_display_t *vd, unsigned dar_num, unsigned dar_de
sar_den = dar_den * osys->source.i_visible_width;
vlc_ureduce(&sar_num, &sar_den, sar_num, sar_den, 0);
} else {
sar_num = 0;
sar_den = 0;
/* Assume 1:1 SAR if the information is missing */
sar_num = 1;
sar_den = 1;
}
if (osys->sar.num != sar_num || osys->sar.den != sar_den) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment