[x264-devel] commit: Fix bug where x264 generated non-compliant bitstreams with insane SAR values (Jason Garrett-Glaser )

git version control git at videolan.org
Mon Oct 12 10:42:28 CEST 2009


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Tue Oct  6 22:15:10 2009 -0700| [fc4926a2d9a4e355ea6a24c962731f5f8c6bd83a] | committer: Jason Garrett-Glaser 

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

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=fc4926a2d9a4e355ea6a24c962731f5f8c6bd83a
---

 encoder/encoder.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/encoder/encoder.c b/encoder/encoder.c
index dd38ea7..c49ed22 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -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;



More information about the x264-devel mailing list