Commit 37ce419e authored by Marian Ďurkovič's avatar Marian Ďurkovič

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

(cherry picked from commit 907e42f1)
parent 2a59455a
...@@ -2291,8 +2291,11 @@ static picture_t *vout_new_buffer( decoder_t *p_dec ) ...@@ -2291,8 +2291,11 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
var_CreateGetBool( p_dec, "hdtv-fix" ) ) var_CreateGetBool( p_dec, "hdtv-fix" ) )
{ {
p_dec->fmt_out.video.i_visible_height = 1080; p_dec->fmt_out.video.i_visible_height = 1080;
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_num *= 135;
p_dec->fmt_out.video.i_sar_den *= 136; p_dec->fmt_out.video.i_sar_den *= 136;
}
msg_Warn( p_dec, "Fixing broken HDTV stream (display_height=1088)"); 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