]> git.sesse.net Git - ffmpeg/commitdiff
aacenc: Convert if () abort() to assert().
authorAlex Converse <alex.converse@gmail.com>
Mon, 19 Jul 2010 20:53:58 +0000 (20:53 +0000)
committerAlex Converse <alex.converse@gmail.com>
Mon, 19 Jul 2010 20:53:58 +0000 (20:53 +0000)
Originally committed as revision 24336 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/aaccoder.c

index f76cbb1770fcc0c694cbc10ca5ac627977b30e8f..4a79f125a10c904c9c4b3b9f4559beb079ab74bb 100644 (file)
@@ -488,7 +488,7 @@ static void codebook_trellis_rate(AACEncContext *s, SingleChannelElement *sce,
             idx = cb;
     ppos = max_sfb;
     while (ppos > 0) {
-        if (idx < 0) abort();
+        assert(idx >= 0);
         cb = idx;
         stackrun[stack_len] = path[ppos][cb].run;
         stackcb [stack_len] = cb;