From 6e8ef5ae6f5540538cef3b488568ff245fec1da4 Mon Sep 17 00:00:00 2001
From: Oded Shimon <ods15@ods15.dyndns.org>
Date: Mon, 2 Oct 2006 06:07:51 +0000
Subject: [PATCH] Original Commit: r62 | ods15 | 2006-09-25 13:12:07 +0300
 (Mon, 25 Sep 2006) | 2 lines

api change for floor_encode

Originally committed as revision 6467 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/vorbis_enc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c
index 66ffeec10b1..17d38aeb010 100644
--- a/libavcodec/vorbis_enc.c
+++ b/libavcodec/vorbis_enc.c
@@ -664,7 +664,7 @@ static void floor_fit(venc_context_t * venc, floor_t * fc, float * coeffs, int *
     }
 }
 
-static void floor_encode(venc_context_t * venc, floor_t * fc, PutBitContext * pb, float * floor, int samples) {
+static void floor_encode(venc_context_t * venc, floor_t * fc, PutBitContext * pb, int * posts, float * floor, int samples) {
     int range = 255 / fc->multiplier + 1;
     int j;
     put_bits(pb, 1, 1); // non zero
@@ -845,7 +845,7 @@ static int vorbis_encode_frame(AVCodecContext * avccontext, unsigned char * pack
         floor_t * fc = &venc->floors[mapping->floor[mapping->mux[i]]];
         int posts[fc->values];
         floor_fit(venc, fc, &venc->coeffs[i * samples], posts, samples);
-        floor_encode(venc, fc, &pb, &venc->floor[i * samples], samples);
+        floor_encode(venc, fc, &pb, posts, &venc->floor[i * samples], samples);
     }
 
     for (i = 0; i < venc->channels; i++) {
-- 
GitLab