summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/player/video.c b/player/video.c
index 59acce0a19..1bb06ad0cc 100644
--- a/player/video.c
+++ b/player/video.c
@@ -326,9 +326,10 @@ static int decode_image(struct MPContext *mpctx)
1 : check_framedrop(mpctx, -1);
d_video->waiting_decoded_mpi =
video_decode(d_video, pkt, framedrop_type);
+ bool had_packet = !!pkt;
talloc_free(pkt);
- return !!pkt;
+ return had_packet;
}