Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Unified Diff: patched-ffmpeg-mt/libavcodec/ra144.c

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: patched-ffmpeg-mt/libavcodec/ra144.c
===================================================================
--- patched-ffmpeg-mt/libavcodec/ra144.c (revision 41250)
+++ patched-ffmpeg-mt/libavcodec/ra144.c (working copy)
@@ -22,6 +22,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/intmath.h"
#include "avcodec.h"
#include "get_bits.h"
#include "ra144.h"
@@ -219,7 +220,7 @@
{
int i;
- for (i=0; i < 30; i++)
+ for (i=0; i < 10; i++)
*out++ = *inp++;
}
@@ -276,7 +277,7 @@
// Interpolate block coefficients from the this frame's forth block and
// last frame's forth block.
- for (i=0; i<30; i++)
+ for (i=0; i<10; i++)
out[i] = (a * ractx->lpc_coef[0][i] + b * ractx->lpc_coef[1][i])>> 2;
if (eval_refl(work, out, ractx->avctx)) {
@@ -297,7 +298,7 @@
int buf_size = avpkt->size;
static const uint8_t sizes[10] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2};
unsigned int refl_rms[4]; // RMS of the reflection coefficients
- uint16_t block_coefs[4][30]; // LPC coefficients of each sub-block
+ uint16_t block_coefs[4][10]; // LPC coefficients of each sub-block
unsigned int lpc_refl[10]; // LPC reflection coefficients of the frame
int i, j;
int16_t *data = vdata;

Powered by Google App Engine
This is Rietveld 408576698