Browse code

lavfi/movie: reindent after the previous patch

Signed-off-by: Steven Robertson <steven@strobe.cc>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>

Steven Robertson authored on 2012/07/07 14:42:29
Showing 1 changed files
... ...
@@ -250,23 +250,23 @@ static int movie_get_frame(AVFilterLink *outlink)
250 250
 
251 251
     while (1) {
252 252
         if (movie->state == STATE_DECODING) {
253
-        ret = av_read_frame(movie->format_ctx, &pkt);
254
-        if (ret == AVERROR_EOF) {
255
-            int64_t timestamp;
256
-            if (movie->loop_count != 1) {
257
-                timestamp = movie->seek_point;
258
-                if (movie->format_ctx->start_time != AV_NOPTS_VALUE)
259
-                    timestamp += movie->format_ctx->start_time;
260
-                if (av_seek_frame(movie->format_ctx, -1, timestamp, AVSEEK_FLAG_BACKWARD) < 0) {
253
+            ret = av_read_frame(movie->format_ctx, &pkt);
254
+            if (ret == AVERROR_EOF) {
255
+                int64_t timestamp;
256
+                if (movie->loop_count != 1) {
257
+                    timestamp = movie->seek_point;
258
+                    if (movie->format_ctx->start_time != AV_NOPTS_VALUE)
259
+                        timestamp += movie->format_ctx->start_time;
260
+                    if (av_seek_frame(movie->format_ctx, -1, timestamp, AVSEEK_FLAG_BACKWARD) < 0) {
261
+                        movie->state = STATE_FLUSHING;
262
+                    } else if (movie->loop_count>1)
263
+                        movie->loop_count--;
264
+                    continue;
265
+                } else {
261 266
                     movie->state = STATE_FLUSHING;
262
-                } else if (movie->loop_count>1)
263
-                    movie->loop_count--;
264
-                continue;
265
-            } else {
266
-                movie->state = STATE_FLUSHING;
267
-            }
268
-        } else if (ret < 0)
269
-            break;
267
+                }
268
+            } else if (ret < 0)
269
+                break;
270 270
         }
271 271
 
272 272
         // Is this a packet from the video stream?