- Affected version
- 2.1.8
In Method
This is a bit unfortunate, as we are using a custom runner that does not require a valid FFMPEG path (in fact it doesn't require one at all as trancoding is being forked out to a different machine).
So I either need to fake the option or overwrite the method completely.
If it did use the existing validator things could be done in a cleaner way
\XFMG\Attachment\Media::validateAttachmentUpload()
XFMG options are being checked directly, although \XFMG\Validator\Ffmpeg
does exist.
PHP:
if (!$ffmpegOptions['ffmpegPath'] || !$ffmpegOptions['transcode'])
{
$upload->logError('xfmgCannotTranscode', \XF::phrase('xfmg_this_file_is_not_encoded_in_supported_format_and_cannot_be_transcoded'));
}
This is a bit unfortunate, as we are using a custom runner that does not require a valid FFMPEG path (in fact it doesn't require one at all as trancoding is being forked out to a different machine).
So I either need to fake the option or overwrite the method completely.
If it did use the existing validator things could be done in a cleaner way