Commit 907e42f1 authored by Marian Ďurkovič's avatar Marian Ďurkovič

Fix HDTV height for H.264 streams with correct PAR.

parent 9fd1d79e
......@@ -2285,8 +2285,11 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
var_CreateGetBool( p_dec, "hdtv-fix" ) )
{
p_dec->fmt_out.video.i_visible_height = 1080;
p_dec->fmt_out.video.i_sar_num *= 135;
p_dec->fmt_out.video.i_sar_den *= 136;
if( !(p_dec->fmt_out.video.i_sar_num % 136))
{
p_dec->fmt_out.video.i_sar_num *= 135;
p_dec->fmt_out.video.i_sar_den *= 136;
}
msg_Warn( p_dec, "Fixing broken HDTV stream (display_height=1088)");
}
......
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