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

reimar subversion at mplayerhq.hu
Sat Nov 3 11:20:01 CET 2007


Author: reimar
Date: Sat Nov  3 11:20:00 2007
New Revision: 24946

Log:
Remove a check+abort, this case should never happen anyway, and if it does
the most likely result is a NULL dereference which isn't much worse.


Modified:
   trunk/libmpcodecs/dec_audio.c

Modified: trunk/libmpcodecs/dec_audio.c
==============================================================================
--- trunk/libmpcodecs/dec_audio.c	(original)
+++ trunk/libmpcodecs/dec_audio.c	Sat Nov  3 11:20:00 2007
@@ -417,9 +417,6 @@ static int filter_n_bytes(sh_audio_t *sh
  * Can reallocate sh_audio->a_out_buffer if needed to fit all filter output. */
 int decode_audio(sh_audio_t *sh_audio, int minlen)
 {
-    if (!sh_audio->inited || !sh_audio->afilter)
-	abort();
-
     // Decoded audio must be cut at boundaries of this many bytes
     int unitsize = sh_audio->channels * sh_audio->samplesize;
 



More information about the MPlayer-cvslog mailing list