]> git.videolan.org Git - x264.git/commitdiff
Add missing emms after nal_encode
authorJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 8 Jun 2010 22:41:17 +0000 (15:41 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 9 Jun 2010 18:35:42 +0000 (11:35 -0700)
Caused random, bizarre failures with some calling applications.

encoder/encoder.c

index 9b2914e14b7975ca1d906325be61347ef3fb52de..9c89eeb876c4f7710cbc6c4d787d67c35c93a9fc 100644 (file)
@@ -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);
 }