From 1800887bdbee733712fe8f35450b15e18994224d Mon Sep 17 00:00:00 2001 From: Heshan Date: Mon, 4 Apr 2011 18:14:49 +0530 Subject: #1097836 by anglo Function ereg() is deprecated --- transcoders/video_ffmpeg.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'transcoders/video_ffmpeg.inc') 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; -- cgit v1.2.3