changeset 9081:06fd12c6b7e6 libavcodec

RA144: work around gcc bug/oddity on ARM This should not make any difference, yet some gcc versions on ARM produce incorrect output without this fix. Approved by Vitor.
author mru
date Sun, 01 Mar 2009 23:41:39 +0000
parents 574481826df3
children ac81b12341d0
files ra144.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ra144.c	Sun Mar 01 12:11:07 2009 +0000
+++ b/ra144.c	Sun Mar 01 23:41:39 2009 +0000
@@ -200,7 +200,7 @@
 
     block = ractx->adapt_cb + BUFFERSIZE - BLOCKSIZE;
 
-    add_wav(block, gain, cba_idx, m, buffer_a,
+    add_wav(block, gain, cba_idx, m, cba_idx? buffer_a: NULL,
             cb1_vects[cb1_idx], cb2_vects[cb2_idx]);
 
     memcpy(ractx->curr_sblock, ractx->curr_sblock + 40,