From 53261080b97458a55ad0ff6e064cbb75c55c8664 Mon Sep 17 00:00:00 2001 From: Oded Shimon Date: Mon, 2 Oct 2006 05:55:39 +0000 Subject: [PATCH] Original Commit: r15 | ods15 | 2006-09-22 12:26:42 +0300 (Fri, 22 Sep 2006) | 2 lines bug fix in main header function, 0 -> i Originally committed as revision 6426 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/vorbis_enc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c index 0e736c2d55..a44bc130da 100644 --- a/libavcodec/vorbis_enc.c +++ b/libavcodec/vorbis_enc.c @@ -388,7 +388,7 @@ static int put_main_header(venc_context_t * venc, uint8_t ** out) { // codebooks put_bits(&pb, 8, venc->ncodebooks - 1); - for (i = 0; i < venc->ncodebooks; i++) put_codebook_header(&pb, &venc->codebooks[0]); + for (i = 0; i < venc->ncodebooks; i++) put_codebook_header(&pb, &venc->codebooks[i]); // time domain, reserved, zero put_bits(&pb, 6, 0); @@ -396,11 +396,11 @@ static int put_main_header(venc_context_t * venc, uint8_t ** out) { // floors put_bits(&pb, 6, venc->nfloors - 1); - for (i = 0; i < venc->nfloors; i++) put_floor_header(&pb, &venc->floors[0]); + for (i = 0; i < venc->nfloors; i++) put_floor_header(&pb, &venc->floors[i]); // residues put_bits(&pb, 6, venc->nresidues - 1); - for (i = 0; i < venc->nresidues; i++) put_residue_header(&pb, &venc->residues[0]); + for (i = 0; i < venc->nresidues; i++) put_residue_header(&pb, &venc->residues[i]); // mappings put_bits(&pb, 6, venc->nmappings - 1);