From: Alex Converse Date: Mon, 19 Jul 2010 20:53:58 +0000 (+0000) Subject: aacenc: Convert if () abort() to assert(). X-Git-Tag: v0.7b1~3052 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=581a96976b9061ed75b280e81fa1659ae3e395ee;p=platform%2Fupstream%2Flibav.git aacenc: Convert if () abort() to assert(). Originally committed as revision 24336 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c index f76cbb1..4a79f12 100644 --- a/libavcodec/aaccoder.c +++ b/libavcodec/aaccoder.c @@ -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;