Skip to content

Commit

Permalink
bugfix with mp3 codec choose
Browse files Browse the repository at this point in the history
Was wrong choose of "mp3" when "libmp3lame" exists.
  • Loading branch information
sapzxc committed Mar 19, 2014
1 parent ad611c7 commit 30bf4f7
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 30bf4f7

Please sign in to comment.