Small tidy-up.
authorCarl Hetherington <cth@carlh.net>
Fri, 12 Jun 2015 08:40:25 +0000 (09:40 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 12 Jun 2015 08:40:25 +0000 (09:40 +0100)
src/lib/video_decoder.cc

index 078e78c6f2c44d321cce2b67e56ff876ca9aec16..6393fcbb26348c8f69d95c0a4b57969e273b25f5 100644 (file)
@@ -147,18 +147,13 @@ VideoDecoder::fill_2d (Frame from, Frame to)
                filler_part = _decoded_video.back().part;
        }
 
-       Frame filler_frame = from;
-       
-       while (filler_frame < to) {
-
+       for (Frame i = from; i < to; ++i) {
 #ifdef DCPOMATIC_DEBUG
                test_gaps++;
 #endif
                _decoded_video.push_back (
-                       ContentVideo (filler_image, EYES_BOTH, filler_part, filler_frame)
+                       ContentVideo (filler_image, EYES_BOTH, filler_part, i)
                        );
-               
-               ++filler_frame;
        }
 }