You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavfi/movie: reindent after the previous patch
Signed-off-by: Steven Robertson <steven@strobe.cc> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
This commit is contained in:
committed by
Stefano Sabatini
parent
ac726a4f0c
commit
c88d98fe4a
@@ -250,23 +250,23 @@ static int movie_get_frame(AVFilterLink *outlink)
|
|||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
if (movie->state == STATE_DECODING) {
|
if (movie->state == STATE_DECODING) {
|
||||||
ret = av_read_frame(movie->format_ctx, &pkt);
|
ret = av_read_frame(movie->format_ctx, &pkt);
|
||||||
if (ret == AVERROR_EOF) {
|
if (ret == AVERROR_EOF) {
|
||||||
int64_t timestamp;
|
int64_t timestamp;
|
||||||
if (movie->loop_count != 1) {
|
if (movie->loop_count != 1) {
|
||||||
timestamp = movie->seek_point;
|
timestamp = movie->seek_point;
|
||||||
if (movie->format_ctx->start_time != AV_NOPTS_VALUE)
|
if (movie->format_ctx->start_time != AV_NOPTS_VALUE)
|
||||||
timestamp += movie->format_ctx->start_time;
|
timestamp += movie->format_ctx->start_time;
|
||||||
if (av_seek_frame(movie->format_ctx, -1, timestamp, AVSEEK_FLAG_BACKWARD) < 0) {
|
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;
|
movie->state = STATE_FLUSHING;
|
||||||
} else if (movie->loop_count>1)
|
}
|
||||||
movie->loop_count--;
|
} else if (ret < 0)
|
||||||
continue;
|
break;
|
||||||
} else {
|
|
||||||
movie->state = STATE_FLUSHING;
|
|
||||||
}
|
|
||||||
} else if (ret < 0)
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is this a packet from the video stream?
|
// Is this a packet from the video stream?
|
||||||
|
Reference in New Issue
Block a user