[x264-devel] commit: Add missing emms after nal_encode (Jason Garrett-Glaser )

git at videolan.org git at videolan.org
Wed Jun 9 20:38:03 CEST 2010


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Tue Jun  8 15:41:17 2010 -0700| [5079abd2ffdbd69d8bc4f474ce50f14fd83a340c] | committer: Jason Garrett-Glaser 

Add missing emms after nal_encode
Caused random, bizarre failures with some calling applications.

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

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

diff --git a/encoder/encoder.c b/encoder/encoder.c
index 9b2914e..9c89eeb 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -1280,6 +1280,8 @@ static int x264_encoder_encapsulate_nals( x264_t *h, int start )
         nal_buffer += size;
     }
 
+    x264_emms();
+
     return nal_buffer - (h->nal_buffer + previous_nal_size);
 }
 



More information about the x264-devel mailing list