]> git.sesse.net Git - nageru-docs/commitdiff
Fix code sample markup in the video section.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 27 May 2017 20:32:46 +0000 (22:32 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 27 May 2017 20:32:46 +0000 (22:32 +0200)
video.rst

index e1f1eb54aec8932bf7d2ab26436c3e52ed0cbdca..cdef8f194674cc3343258fe2cd95ca5e73eed7b7 100644 (file)
--- a/video.rst
+++ b/video.rst
@@ -32,15 +32,15 @@ and/or it has an alpha channel you want to use. Getting the format right makes
 for better efficiency; you not only save a conversion step on the CPU, but
 sometimes also on the GPU.
 
-Videos are loaded like this:
+Videos are loaded like this::
 
   local video = VideoInput.new("filename.mp4", Nageru.VIDEO_FORMAT_YCBCR)
 
-or, for a network stream, perhaps:
+or, for a network stream, perhaps::
 
   local video = VideoInput.new("http://localhost/file.nut", Nageru.VIDEO_FORMAT_BGRA)
 
-It can then be added to any chain like this:
+It can then be added to any chain like this::
 
   local input = chain:add_video_input(video, false)
 
@@ -48,7 +48,7 @@ The second parameter specifies no deinterlacing. Note that interlaced video
 is currently not supported, not even with deinterlacing, so this parameter
 must always be false.
 
-You can use the same video object to create many different video inputs:
+You can use the same video object to create many different video inputs::
   
   local input1 = chain1:add_video_input(video, false)
   local input2 = chain2:add_video_input(video, false)