From 581a96976b9061ed75b280e81fa1659ae3e395ee Mon Sep 17 00:00:00 2001 From: Alex Converse Date: Mon, 19 Jul 2010 20:53:58 +0000 Subject: [PATCH] aacenc: Convert if () abort() to assert(). Originally committed as revision 24336 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/aaccoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c index f76cbb1770..4a79f125a1 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;