[x264-devel] commit: Fix MP4 output (bug in malloc checking patch) ( Jason Garrett-Glaser )
git version control
git at videolan.org
Sat Aug 8 20:45:40 CEST 2009
x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Sat Aug 8 11:26:36 2009 -0700| [21a38355ccd46d1dd928341f8b9f6dd69afd9cff] | committer: Jason Garrett-Glaser
Fix MP4 output (bug in malloc checking patch)
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=21a38355ccd46d1dd928341f8b9f6dd69afd9cff
---
muxers.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/muxers.c b/muxers.c
index ef2f5ff..5c74f13 100644
--- 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);
More information about the x264-devel
mailing list