Commit 2fb4aa1b authored by Laurent Aimar's avatar Laurent Aimar

Fixed h264 aspect ratio overflow.

parent 179b740c
...@@ -886,8 +886,9 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag ) ...@@ -886,8 +886,9 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag )
w = 0; w = 0;
h = 0; h = 0;
} }
if( h != 0 ) if( h != 0 )
p_dec->fmt_out.video.i_aspect = VOUT_ASPECT_FACTOR * p_dec->fmt_out.video.i_aspect = (int64_t)VOUT_ASPECT_FACTOR *
( w * p_dec->fmt_out.video.i_width ) / ( w * p_dec->fmt_out.video.i_width ) /
( h * p_dec->fmt_out.video.i_height); ( h * p_dec->fmt_out.video.i_height);
else else
......
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