tony2001 / ffmpeg-php

PHP extension for video editing, wrapping ffmpeg
GNU General Public License v2.0
84 stars 62 forks source link

Updated getYear() to check for both 'year' and 'date' keys to fix segfault #7

Open jonjo-blur opened 10 years ago

jonjo-blur commented 10 years ago

The previous implementation segfaults on newer versions of ffmpeg due to the 'year' field apparently being replaced with 'date'; this fixes that and passes the testsuite

tony2001 commented 10 years ago

Weird. Does valgrind show you anything? USE_ZEND_ALLOC=0 valgrind --tool=memcheck php script.php