Proper command escaping
This commit is contained in:
parent
cbbfa7eaac
commit
70ba5000c1
5 changed files with 96 additions and 74 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ abstract class DefaultAudio implements Resamplable, Interactive
|
|||
*/
|
||||
public function getExtraParams()
|
||||
{
|
||||
return '';
|
||||
return array();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -28,13 +28,13 @@ class WebM extends DefaultVideo
|
|||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getExtraParams()
|
||||
{
|
||||
return '-f webm';
|
||||
return array('-f', 'webm');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue