MPEGaudioFrameLength example

$this->error(intval(round($thisfile_mpeg_audio['bitrate'] / 1000)).'kbps not allowed in Layer 2, '.$thisfile_mpeg_audio['channelmode'].'.');
                        return false;
                    }
                    break;

            }

        }


        if ($info['audio']['sample_rate'] > 0) {
            $thisfile_mpeg_audio['framelength'] = self::MPEGaudioFrameLength($thisfile_mpeg_audio['bitrate']$thisfile_mpeg_audio['version']$thisfile_mpeg_audio['layer'](int) $thisfile_mpeg_audio['padding']$info['audio']['sample_rate']);
        }

        $nextframetestoffset = $offset + 1;
        if ($thisfile_mpeg_audio['bitrate'] != 'free') {

            $info['audio']['bitrate'] = $thisfile_mpeg_audio['bitrate'];

            if (isset($thisfile_mpeg_audio['framelength'])) {
                $nextframetestoffset = $offset + $thisfile_mpeg_audio['framelength'];
            } else {
                $this->error('Frame at offset('.$offset.') is has an invalid frame length.');
                
Home | Imprint | This part of the site doesn't use cookies.