[MPlayer-cvslog] r30732 - trunk/libmpcodecs/ad_hwmpa.c

reimar subversion at mplayerhq.hu
Thu Feb 25 23:06:05 CET 2010


Author: reimar
Date: Thu Feb 25 23:06:05 2010
New Revision: 30732

Log:
Fix check for wrong variable: len can be unitialized but not normally < 0,
the return value needs to be checked to detect an error.

Modified:
   trunk/libmpcodecs/ad_hwmpa.c

Modified: trunk/libmpcodecs/ad_hwmpa.c
==============================================================================
--- trunk/libmpcodecs/ad_hwmpa.c	Thu Feb 25 22:27:22 2010	(r30731)
+++ trunk/libmpcodecs/ad_hwmpa.c	Thu Feb 25 23:06:05 2010	(r30732)
@@ -151,7 +151,7 @@ static int control(sh_audio_t *sh,int cm
 				return CONTROL_FALSE;
 		case ADCTRL_SKIP_FRAME:
 			start = mpa_sync(sh, 2, &len, NULL, NULL, NULL, NULL, NULL);
-			if(len < 0)
+			if(start < 0)
 				return CONTROL_FALSE;
 
 			sh->a_in_buffer_len -= start;


More information about the MPlayer-cvslog mailing list