[MPlayer-cvslog] r24914 - trunk/libmpcodecs/dec_audio.c

uau subversion at mplayerhq.hu
Thu Nov 1 07:51:53 CET 2007


Author: uau
Date: Thu Nov  1 07:51:53 2007
New Revision: 24914

Log:
Replace hopefully unreachable code with abort()


Modified:
   trunk/libmpcodecs/dec_audio.c

Modified: trunk/libmpcodecs/dec_audio.c
==============================================================================
--- trunk/libmpcodecs/dec_audio.c	(original)
+++ trunk/libmpcodecs/dec_audio.c	Thu Nov  1 07:51:53 2007
@@ -388,13 +388,8 @@ int decode_audio(sh_audio_t *sh_audio, u
     af_data_t *pafd;		// filter output
     ad_functions_t *mpadec = sh_audio->ad_driver;
 
-    if (!sh_audio->inited)
-	return -1;		// no codec
-    if (!sh_audio->afilter) {
-	// no filter, just decode:
-	// FIXME: don't drop initial decoded data in a_buffer!
-	return mpadec->decode_audio(sh_audio, buf, minlen, maxlen);
-    }
+    if (!sh_audio->inited || !sh_audio->afilter)
+	abort();
 
     declen = af_calc_insize_constrained(sh_audio->afilter, minlen, maxlen,
 					sh_audio->a_buffer_size -



More information about the MPlayer-cvslog mailing list