aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeshan <heshan@heidisoft.com>2011-04-04 18:14:49 +0530
committerHeshan <heshan@heidisoft.com>2011-04-04 18:14:49 +0530
commit1800887bdbee733712fe8f35450b15e18994224d (patch)
tree3e84b1a898e42d082842f18741ad8a94aefb1a27
parenta4b34256a67eac2e9c364b4358aaeec5f1b797c2 (diff)
downloadvideo-1800887bdbee733712fe8f35450b15e18994224d.tar.gz
video-1800887bdbee733712fe8f35450b15e18994224d.tar.bz2
#1097836 by anglo Function ereg() is deprecated
-rw-r--r--transcoders/video_ffmpeg.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/transcoders/video_ffmpeg.inc b/transcoders/video_ffmpeg.inc
index f7d12e1..e5f8c63 100644
--- a/transcoders/video_ffmpeg.inc
+++ b/transcoders/video_ffmpeg.inc
@@ -256,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 = preg_replace('[0-9]?[0-9][0-9][0-9]x[0-9][0-9][0-9][0-9]?', $ffmpeg_output, $regs);
+ $regex = preg_match('/([0-9]{1,5})x([0-9]{1,5})/', $ffmpeg_output, $regs);
if (isset($regs[0])) {
$dimensions = explode("x", $regs[0]);
$res['width'] = $dimensions[0] ? $dimensions[0] : NULL;