]> granicus.if.org Git - libx264/commitdiff
Add missing emms after nal_encode
authorFiona Glaser <fiona@x264.com>
Tue, 8 Jun 2010 22:41:17 +0000 (15:41 -0700)
committerFiona Glaser <fiona@x264.com>
Wed, 9 Jun 2010 18:35:42 +0000 (11:35 -0700)
Caused random, bizarre failures with some calling applications.

encoder/encoder.c

index f6b6d7fe908c717f3e4abd559fe389eb32be92f6..0ba1785abcb0aac22a7563ba6dbc039257bef4f5 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);
 }