Mercurial > mplayer.hg
changeset 36325:e6174864737a
Fix a possible crash when DRI failed.
author | reimar |
---|---|
date | Mon, 12 Aug 2013 19:56:34 +0000 |
parents | 95ea180551c0 |
children | 0b2364deb6a1 |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Mon Aug 12 19:37:35 2013 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Mon Aug 12 19:56:34 2013 +0000 @@ -520,7 +520,7 @@ mp_msg(MSGT_DECVIDEO, MSGL_FATAL, "BUG in FFmpeg, draw_slice called with NULL pointer!\n"); return; } - if (IMGFMT_IS_VDPAU(mpi->imgfmt)) { + if (mpi && IMGFMT_IS_VDPAU(mpi->imgfmt)) { mp_msg(MSGT_DECVIDEO, MSGL_FATAL, "BUG in FFmpeg, draw_slice called for VDPAU!\n"); return; }