[x264-devel] commit: Fix filter parsing with --extra-cflags="-DNDEBUG" ( Anton Mitrofanov )

git at videolan.org git at videolan.org
Sun Oct 10 23:47:34 CEST 2010


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Wed Sep 29 22:06:27 2010 +0400| [be2a065964211d9d537289f49e78e890f1b17da8] | committer: Jason Garrett-Glaser 

Fix filter parsing with --extra-cflags="-DNDEBUG"

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

 filters/filters.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/filters/filters.c b/filters/filters.c
index df75174..0c6f30d 100644
--- a/filters/filters.c
+++ b/filters/filters.c
@@ -68,7 +68,10 @@ char **x264_split_string( char *string, char *sep, uint32_t limit )
             esc = NULL;
         }
         else
-            assert( ( split[i++] = strdup( tok ) ) );
+        {
+            split[i++] = strdup( tok );
+            assert( split[i-1] );
+        }
         tok = nexttok;
     } while ( tok );
     free( str );



More information about the x264-devel mailing list