summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--avplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avplay.c b/avplay.c
index d9c178604f..d1cf53d117 100644
--- a/avplay.c
+++ b/avplay.c
@@ -1796,7 +1796,7 @@ static int video_thread(void *arg)
frame->opaque = picref;
}
- if (av_cmp_q(tb, is->video_st->time_base)) {
+ if (ret >= 0 && av_cmp_q(tb, is->video_st->time_base)) {
av_unused int64_t pts1 = pts_int;
pts_int = av_rescale_q(pts_int, tb, is->video_st->time_base);
av_dlog(NULL, "video_thread(): "