Commit 3b813164 authored by Fiona Glaser's avatar Fiona Glaser

Fix bug where x264 generated non-compliant bitstreams with insane SAR values

parent 6e8487f4
......@@ -724,6 +724,8 @@ static void x264_set_aspect_ratio( x264_t *h, x264_param_t *param, int initial )
i_h /= 2;
}
x264_reduce_fraction( &i_w, &i_h );
if( i_w != old_w || i_h != old_h || initial )
{
h->param.vui.i_sar_width = 0;
......
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