summaryrefslogtreecommitdiff
path: root/libavfilter/src_movie.c
diff options
context:
space:
mode:
authorSteven Robertson <steven@strobe.cc>2012-07-06 22:42:29 -0700
committerStefano Sabatini <stefasab@gmail.com>2012-07-10 01:37:54 +0200
commitc88d98fe4a42b02eec7ac8e1f113f9ec1a5d0ac6 (patch)
treeab7ea397cbeed527cac28f835e81283944239ea4 /libavfilter/src_movie.c
parentac726a4f0cd2fb8619b478af51312a4282215f0e (diff)
lavfi/movie: reindent after the previous patch
Signed-off-by: Steven Robertson <steven@strobe.cc> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'libavfilter/src_movie.c')
-rw-r--r--libavfilter/src_movie.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index 95ea2fc6bf..b1d8fd31ad 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -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?