This is a common error when we hit “php -v” over command line or when we browse a phpinfo.php on a site.
To fix this problem you will need to recompile your ffmpeg-php again.
To fix this:
Go to the source directory ffmpeg-phpXX.XX
#vi ffmpeg-php.c
remove/comment the call to av_free_static()
Save.
Now rebuild ffmpeg-php and place the new ffmpeg.so on your extension directory.