[MPlayer-cvslog] r37679 - trunk/libmpcodecs/vd_xvid4.c
    reimar 
    subversion at mplayerhq.hu
       
    Thu Feb 11 22:43:12 CET 2016
    
    
  
Author: reimar
Date: Thu Feb 11 22:43:12 2016
New Revision: 37679
Log:
vd_xvid4: check mpcodecs_get_image return value.
Modified:
   trunk/libmpcodecs/vd_xvid4.c
Modified: trunk/libmpcodecs/vd_xvid4.c
==============================================================================
--- trunk/libmpcodecs/vd_xvid4.c	Thu Feb 11 22:37:59 2016	(r37678)
+++ trunk/libmpcodecs/vd_xvid4.c	Thu Feb 11 22:43:12 2016	(r37679)
@@ -256,6 +256,7 @@ static mp_image_t* decode(sh_video_t *sh
 			mpi = mpcodecs_get_image(sh, p->img_type,
 					MP_IMGFLAG_ACCEPT_STRIDE,
 					sh->disp_w, sh->disp_h);
+			if (!mpi) return NULL;
 
 			if(p->cs != XVID_CSP_INTERNAL) {
 				dec.output.plane[0] = mpi->planes[0];
    
    
More information about the MPlayer-cvslog
mailing list