[FFmpeg-soc] [soc]: r2906 - aac/aac.c

superdump subversion at mplayerhq.hu
Tue Jul 29 22:53:49 CEST 2008


Author: superdump
Date: Tue Jul 29 22:53:49 2008
New Revision: 2906

Log:
Fix broken null extradata check. If there is no extradata -> return error. If there is
extradata but audio_specific_config() returns an error -> return error.


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Tue Jul 29 22:53:49 2008
@@ -819,7 +819,7 @@ static av_cold int aac_decode_init(AVCod
 
     ac->avccontext = avccontext;
 
-    if (avccontext->extradata_size > 0 &&
+    if (avccontext->extradata_size <= 0 ||
         audio_specific_config(ac, avccontext->extradata, avccontext->extradata_size))
         return -1;
 



More information about the FFmpeg-soc mailing list