diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php
index 66c180052..29b8d2525 100644
--- a/src/Content/Text/BBCode.php
+++ b/src/Content/Text/BBCode.php
@@ -1616,12 +1616,13 @@ class BBCode
// html5 video and audio
$text = preg_replace("/\[video\](.*?\.(ogg|ogv|oga|ogm|webm|mp4).*?)\[\/video\]/ism",
'', $text);
- $text = preg_replace("/\[video\](.*?)\[\/video\]/ism",
- '$1', $text);
- $text = preg_replace("/\[audio\](.*?)\[\/audio\]/ism", '', $text);
$text = preg_replace_callback("/\[video\](.*?)\[\/video\]/ism", $try_oembed_callback, $text);
$text = preg_replace_callback("/\[audio\](.*?)\[\/audio\]/ism", $try_oembed_callback, $text);
+
+ $text = preg_replace("/\[video\](.*?)\[\/video\]/ism",
+ '$1', $text);
+ $text = preg_replace("/\[audio\](.*?)\[\/audio\]/ism", '', $text);
} else {
$text = preg_replace("/\[video\](.*?)\[\/video\]/ism",
'$1', $text);