aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeshan <heshan@heidisoft.com>2011-04-01 08:54:50 +0530
committerHeshan <heshan@heidisoft.com>2011-04-01 08:54:50 +0530
commit72b629af64c44ad8a1bc19ef2a98c660018fd062 (patch)
treeb6a320b4ce656ef59796edc9e838910b81cbb6b6
parent150779efb20a7959eae744f58b7470bf4a000ebe (diff)
downloadvideo-72b629af64c44ad8a1bc19ef2a98c660018fd062.tar.gz
video-72b629af64c44ad8a1bc19ef2a98c660018fd062.tar.bz2
#1097836 by anglo Function ereg() is deprecated
-rw-r--r--transcoders/video_ffmpeg.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/transcoders/video_ffmpeg.inc b/transcoders/video_ffmpeg.inc
index 2cdf417..f7d12e1 100644
--- a/transcoders/video_ffmpeg.inc
+++ b/transcoders/video_ffmpeg.inc
@@ -52,6 +52,7 @@ class video_ffmpeg implements transcoder_interface {
// Setup our thmbnail path.
$video_thumb_path = variable_get('video_thumb_path', 'videos/thumbnails');
// Get the file system directory.
+ // @todo : get the field file system settings to this
$schema_thumb_path = file_default_scheme() . '://' . $video_thumb_path . '/' . $video['fid'];
file_prepare_directory($schema_thumb_path, FILE_CREATE_DIRECTORY);
// Total thumbs to generate
@@ -255,7 +256,7 @@ class video_ffmpeg implements transcoder_interface {
$ffmpeg_output = $this->get_video_info($video);
$res = array('width' => 0, 'height' => 0);
// Get dimensions
- $regex = ereg('[0-9]?[0-9][0-9][0-9]x[0-9][0-9][0-9][0-9]?', $ffmpeg_output, $regs);
+ $regex = preg_replace('[0-9]?[0-9][0-9][0-9]x[0-9][0-9][0-9][0-9]?', $ffmpeg_output, $regs);
if (isset($regs[0])) {
$dimensions = explode("x", $regs[0]);
$res['width'] = $dimensions[0] ? $dimensions[0] : NULL;