[SPIP] v3.2.1-->v3.2.3
[lhc/web/www.git] / www / plugins-dist / medias / lib / getid3 / module.audio.wavpack.php
index b54c179..a6e57fd 100644 (file)
@@ -1,11 +1,11 @@
 <?php
+
 /////////////////////////////////////////////////////////////////
 /// getID3() by James Heinrich <info@getid3.org>               //
-//  available at http://getid3.sourceforge.net                 //
-//            or http://www.getid3.org                         //
-//          also https://github.com/JamesHeinrich/getID3       //
-/////////////////////////////////////////////////////////////////
-// See readme.txt for more details                             //
+//  available at https://github.com/JamesHeinrich/getID3       //
+//            or https://www.getid3.org                        //
+//            or http://getid3.sourceforge.net                 //
+//  see readme.txt for more details                            //
 /////////////////////////////////////////////////////////////////
 //                                                             //
 // module.audio.wavpack.php                                    //
@@ -17,7 +17,9 @@
 
 class getid3_wavpack extends getid3_handler
 {
-
+       /**
+        * @return bool
+        */
        public function Analyze() {
                $info = &$this->getid3->info;
 
@@ -236,7 +238,7 @@ class getid3_wavpack extends getid3_handler
 
 
                                                case 0x22: // ID_RIFF_TRAILER
-                                                       $metablockRIFFfooter = $metablockRIFFheader.$metablock['data'];
+                                                       $metablockRIFFfooter = isset($metablockRIFFheader) ? $metablockRIFFheader : ''.$metablock['data'];
                                                        getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.audio-video.riff.php', __FILE__, true);
 
                                                        $startoffset = $metablock['offset'] + ($metablock['large_block'] ? 4 : 2);
@@ -368,7 +370,11 @@ class getid3_wavpack extends getid3_handler
                return true;
        }
 
-
+       /**
+        * @param int $id
+        *
+        * @return string
+        */
        public function WavPackMetablockNameLookup(&$id) {
                static $WavPackMetablockNameLookup = array(
                        0x00 => 'Dummy',