Proper command escaping

This commit is contained in:
Romain Neutron 2012-10-08 14:20:59 +02:00
commit 70ba5000c1
5 changed files with 96 additions and 74 deletions

View file

@ -27,10 +27,9 @@ interface Audio
public function getKiloBitrate();
/**
* Give som extra parameters to add to ffmpeg commandline
* Parameters MUST be escaped
* Return an array of extra parameters to add to ffmpeg commandline
*
* @return string
* @return array()
*/
public function getExtraParams();

View file

@ -31,7 +31,7 @@ abstract class DefaultAudio implements Resamplable, Interactive
*/
public function getExtraParams()
{
return '';
return array();
}
/**

View file

@ -28,13 +28,13 @@ class WebM extends DefaultVideo
{
return true;
}
/**
* {@inheritDoc}
*/
public function getExtraParams()
{
return '-f webm';
return array('-f', 'webm');
}
/**