diff --git a/examples/storyboard.c b/examples/storyboard.c
index ad4a688..35f1c57 100644
--- a/examples/storyboard.c
+++ b/examples/storyboard.c
@@ -73,7 +73,10 @@ int main(int argc, char *argv[])
     stream = -1;
     for(i = 0; stream == -1 && i < (int)fmt->nb_streams; i++)
         if(fmt->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO)
+        {
             stream = i;
+            break;
+        }
     if(stream == -1)
         return EXIT_FAILURE;
     ctx = fmt->streams[stream]->codec;