[MPlayer-cvslog] r22079 - trunk/libmpcodecs/vd_lzo.c

reimar subversion at mplayerhq.hu
Tue Jan 30 19:53:53 CET 2007


Author: reimar
Date: Tue Jan 30 19:53:53 2007
New Revision: 22079

Modified:
   trunk/libmpcodecs/vd_lzo.c

Log:
Simplify


Modified: trunk/libmpcodecs/vd_lzo.c
==============================================================================
--- trunk/libmpcodecs/vd_lzo.c	(original)
+++ trunk/libmpcodecs/vd_lzo.c	Tue Jan 30 19:53:53 2007
@@ -108,12 +108,10 @@
     
 
     if (!init_done) {
-	lzo_byte *tmp=NULL;
+	lzo_byte *tmp = lzo_malloc(sh->bih->biSizeImage);
 	
 	// decompress one frame to see if its
 	// either YV12 or RGB24
-	if (!tmp) tmp = lzo_malloc(sh->bih->biSizeImage);
-
 	mp_msg (MSGT_DECVIDEO, MSGL_V, "[%s] 2 depth %d, format %d data %p len (%d) (%d)\n",
 	    MOD_NAME, sh->bih->biBitCount, sh->format, data, len, sh->bih->biSizeImage
 	    );



More information about the MPlayer-cvslog mailing list