[MPlayer-cvslog] r36450 - trunk/libmpcodecs/vd_ffmpeg.c
reimar
subversion at mplayerhq.hu
Thu Sep 19 19:55:00 CEST 2013
Author: reimar
Date: Thu Sep 19 19:54:59 2013
New Revision: 36450
Log:
Fix possible crash when mpi is NULL.
Modified:
trunk/libmpcodecs/vd_ffmpeg.c
Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c Mon Sep 16 20:35:46 2013 (r36449)
+++ trunk/libmpcodecs/vd_ffmpeg.c Thu Sep 19 19:54:59 2013 (r36450)
@@ -540,7 +540,7 @@ static void draw_slice(struct AVCodecCon
return;
}
#if CONFIG_VDPAU
- if (IMGFMT_IS_VDPAU(mpi->imgfmt)) {
+ if (mpi && IMGFMT_IS_VDPAU(mpi->imgfmt)) {
struct vdpau_render_state *render = mpi->priv;
vdpau_render_wrapper(s, src, &render->info, render->bitstream_buffers_used, render->bitstream_buffers);
return;
More information about the MPlayer-cvslog
mailing list