lavfi/movie: reindent after the previous patch
authorSteven Robertson <steven@strobe.cc>
Sat, 7 Jul 2012 05:42:29 +0000 (22:42 -0700)
committerStefano Sabatini <stefasab@gmail.com>
Mon, 9 Jul 2012 23:37:54 +0000 (01:37 +0200)
Signed-off-by: Steven Robertson <steven@strobe.cc>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
libavfilter/src_movie.c

index 95ea2fc..b1d8fd3 100644 (file)
@@ -250,23 +250,23 @@ static int movie_get_frame(AVFilterLink *outlink)
 
     while (1) {
         if (movie->state == STATE_DECODING) {
-        ret = av_read_frame(movie->format_ctx, &pkt);
-        if (ret == AVERROR_EOF) {
-            int64_t timestamp;
-            if (movie->loop_count != 1) {
-                timestamp = movie->seek_point;
-                if (movie->format_ctx->start_time != AV_NOPTS_VALUE)
-                    timestamp += movie->format_ctx->start_time;
-                if (av_seek_frame(movie->format_ctx, -1, timestamp, AVSEEK_FLAG_BACKWARD) < 0) {
+            ret = av_read_frame(movie->format_ctx, &pkt);
+            if (ret == AVERROR_EOF) {
+                int64_t timestamp;
+                if (movie->loop_count != 1) {
+                    timestamp = movie->seek_point;
+                    if (movie->format_ctx->start_time != AV_NOPTS_VALUE)
+                        timestamp += movie->format_ctx->start_time;
+                    if (av_seek_frame(movie->format_ctx, -1, timestamp, AVSEEK_FLAG_BACKWARD) < 0) {
+                        movie->state = STATE_FLUSHING;
+                    } else if (movie->loop_count>1)
+                        movie->loop_count--;
+                    continue;
+                } else {
                     movie->state = STATE_FLUSHING;
-                } else if (movie->loop_count>1)
-                    movie->loop_count--;
-                continue;
-            } else {
-                movie->state = STATE_FLUSHING;
-            }
-        } else if (ret < 0)
-            break;
+                }
+            } else if (ret < 0)
+                break;
         }
 
         // Is this a packet from the video stream?