Mercurial > libavcodec.hg
comparison vorbis_enc.c @ 3821:5fdb0fa900cd libavcodec
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
author | ods15 |
---|---|
date | Mon, 02 Oct 2006 05:55:39 +0000 |
parents | 3cfdf99da951 |
children | a7f46bc1fea0 |
comparison
equal
deleted
inserted
replaced
3820:3cfdf99da951 | 3821:5fdb0fa900cd |
---|---|
386 put_bits(&pb, 8, 5); //magic | 386 put_bits(&pb, 8, 5); //magic |
387 for (i = 0; "vorbis"[i]; i++) put_bits(&pb, 8, "vorbis"[i]); | 387 for (i = 0; "vorbis"[i]; i++) put_bits(&pb, 8, "vorbis"[i]); |
388 | 388 |
389 // codebooks | 389 // codebooks |
390 put_bits(&pb, 8, venc->ncodebooks - 1); | 390 put_bits(&pb, 8, venc->ncodebooks - 1); |
391 for (i = 0; i < venc->ncodebooks; i++) put_codebook_header(&pb, &venc->codebooks[0]); | 391 for (i = 0; i < venc->ncodebooks; i++) put_codebook_header(&pb, &venc->codebooks[i]); |
392 | 392 |
393 // time domain, reserved, zero | 393 // time domain, reserved, zero |
394 put_bits(&pb, 6, 0); | 394 put_bits(&pb, 6, 0); |
395 put_bits(&pb, 16, 0); | 395 put_bits(&pb, 16, 0); |
396 | 396 |
397 // floors | 397 // floors |
398 put_bits(&pb, 6, venc->nfloors - 1); | 398 put_bits(&pb, 6, venc->nfloors - 1); |
399 for (i = 0; i < venc->nfloors; i++) put_floor_header(&pb, &venc->floors[0]); | 399 for (i = 0; i < venc->nfloors; i++) put_floor_header(&pb, &venc->floors[i]); |
400 | 400 |
401 // residues | 401 // residues |
402 put_bits(&pb, 6, venc->nresidues - 1); | 402 put_bits(&pb, 6, venc->nresidues - 1); |
403 for (i = 0; i < venc->nresidues; i++) put_residue_header(&pb, &venc->residues[0]); | 403 for (i = 0; i < venc->nresidues; i++) put_residue_header(&pb, &venc->residues[i]); |
404 | 404 |
405 // mappings | 405 // mappings |
406 put_bits(&pb, 6, venc->nmappings - 1); | 406 put_bits(&pb, 6, venc->nmappings - 1); |
407 for (i = 0; i < venc->nmappings; i++) { | 407 for (i = 0; i < venc->nmappings; i++) { |
408 mapping_t * mc = &venc->mappings[i]; | 408 mapping_t * mc = &venc->mappings[i]; |