diff options
Diffstat (limited to 'video/out/vo_lavc.c')
-rw-r--r-- | video/out/vo_lavc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo_lavc.c b/video/out/vo_lavc.c index 7bc9c1a3b7..a387cd6457 100644 --- a/video/out/vo_lavc.c +++ b/video/out/vo_lavc.c @@ -468,6 +468,8 @@ static void draw_image_unlocked(struct vo *vo, mp_image_t *mpi) MP_INFO(vo, "Frame at pts %d got displayed %d times\n", (int) vc->lastframeipts, vc->lastdisplaycount); mp_image_setrefp(&vc->lastimg, mpi); + if (!vc->lastimg) + MP_ERR(vo, "Out of memory\n"); vc->lastimg_wants_osd = true; vc->lastframeipts = vc->lastipts = frameipts; |