Revision 43d7c611 libavcodec/vorbis_enc.c

View differences:

libavcodec/vorbis_enc.c
386 386
        mant = -mant;
387 387
    }
388 388
    res |= mant | (exp << 21);
389
    put_bits(pb, 32, res);
389
    put_bits32(pb, res);
390 390
}
391 391

  
392 392
static void put_codebook_header(PutBitContext *pb, vorbis_enc_codebook *cb)
......
531 531
    init_put_bits(&pb, p, buffer_len);
532 532
    put_bits(&pb, 8, 1); //magic
533 533
    ff_put_string(&pb, "vorbis", 0);
534
    put_bits(&pb, 32, 0); // version
534
    put_bits32(&pb, 0); // version
535 535
    put_bits(&pb,  8, venc->channels);
536
    put_bits(&pb, 32, venc->sample_rate);
537
    put_bits(&pb, 32, 0); // bitrate
538
    put_bits(&pb, 32, 0); // bitrate
539
    put_bits(&pb, 32, 0); // bitrate
536
    put_bits32(&pb, venc->sample_rate);
537
    put_bits32(&pb, 0); // bitrate
538
    put_bits32(&pb, 0); // bitrate
539
    put_bits32(&pb, 0); // bitrate
540 540
    put_bits(&pb,  4, venc->log2_blocksize[0]);
541 541
    put_bits(&pb,  4, venc->log2_blocksize[1]);
542 542
    put_bits(&pb,  1, 1); // framing
......
550 550
    init_put_bits(&pb, p, buffer_len);
551 551
    put_bits(&pb, 8, 3); //magic
552 552
    ff_put_string(&pb, "vorbis", 0);
553
    put_bits(&pb, 32, 0); // vendor length TODO
554
    put_bits(&pb, 32, 0); // amount of comments
553
    put_bits32(&pb, 0); // vendor length TODO
554
    put_bits32(&pb, 0); // amount of comments
555 555
    put_bits(&pb,  1, 1); // framing
556 556

  
557 557
    flush_put_bits(&pb);

Also available in: Unified diff