Skip to content

Commit

Permalink
Merge pull request #19 from sapzxc/master
Browse files Browse the repository at this point in the history
bugfix with mp3 codec choose
  • Loading branch information
Oliver Lillie committed Mar 19, 2014
2 parents ad611c7 + 30bf4f7 commit b24c6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PHPVideoToolkit/AudioFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function setAudioCodec($audio_codec)
// updated. thanks to Varon for providing the research
if(in_array($audio_codec, array('mp3', 'libmp3lame')) === true)
{
$audio_codec = isset($codecs['libmp3lame']) === true ? 'libmp3lame' : 'mp3';
$audio_codec = in_array('libmp3lame',$codecs) ? 'libmp3lame' : 'mp3';
}
// fix vorbis
else if($audio_codec === 'vorbis' || $audio_codec === 'libvorbis' )
Expand Down

0 comments on commit b24c6cc

Please sign in to comment.