]> granicus.if.org Git - libx264/commitdiff
Fix MP4 output (bug in malloc checking patch)
authorFiona Glaser <fiona@x264.com>
Sat, 8 Aug 2009 18:26:36 +0000 (11:26 -0700)
committerFiona Glaser <fiona@x264.com>
Sat, 8 Aug 2009 18:26:36 +0000 (11:26 -0700)
muxers.c

index ef2f5ff1af8a3c39755cf4e33877ee7f4975d63d..5c74f132b77845c85e1fa1c7058696a756d731d4 100644 (file)
--- a/muxers.c
+++ b/muxers.c
@@ -747,7 +747,7 @@ int write_nalu_mp4( hnd_t handle, uint8_t *p_nalu, int i_size )
                 return -1;
             p_slot->size = i_size - 4;
             p_slot->data = (char *)malloc(p_slot->size);
-            if( p_slot->data )
+            if( !p_slot->data )
                 return -1;
             memcpy(p_slot->data, p_nalu + 4, i_size - 4);
             gf_list_add(p_mp4->p_config->sequenceParameterSets, p_slot);