Ticket #6401: flv_ffmpeg_mp3_detection.2.patch
File flv_ffmpeg_mp3_detection.2.patch, 741 bytes (added by , 15 years ago) |
---|
-
mythweb/modules/mythweb/tmpl/default/set_flvplayer.php
37 37 break; 38 38 } 39 39 } 40 $ffmpeg_output = shell_exec ("$ffmpeg - -help2>&1");41 $has_mp3_support = strpos ($ffmpeg_output, "mp3");40 $ffmpeg_output = shell_exec ("$ffmpeg -formats 2>&1"); 41 $has_mp3_support = preg_match('/E\s+mp3/', $ffmpeg_output); 42 42 if (!$has_mp3_support) 43 43 echo ' DISABLED'; 44 44 if (setting('WebFLV_on'))