Revision eb0d04c3 libavcodec/vorbis_enc.c

View differences:

libavcodec/vorbis_enc.c
530 530
    // identification header
531 531
    init_put_bits(&pb, p, buffer_len);
532 532
    put_bits(&pb, 8, 1); //magic
533
    for (i = 0; "vorbis"[i]; i++)
534
        put_bits(&pb, 8, "vorbis"[i]);
533
    ff_put_string(&pb, "vorbis", 0);
535 534
    put_bits(&pb, 32, 0); // version
536 535
    put_bits(&pb,  8, venc->channels);
537 536
    put_bits(&pb, 32, venc->sample_rate);
......
550 549
    // comment header
551 550
    init_put_bits(&pb, p, buffer_len);
552 551
    put_bits(&pb, 8, 3); //magic
553
    for (i = 0; "vorbis"[i]; i++)
554
        put_bits(&pb, 8, "vorbis"[i]);
552
    ff_put_string(&pb, "vorbis", 0);
555 553
    put_bits(&pb, 32, 0); // vendor length TODO
556 554
    put_bits(&pb, 32, 0); // amount of comments
557 555
    put_bits(&pb,  1, 1); // framing
......
564 562
    // setup header
565 563
    init_put_bits(&pb, p, buffer_len);
566 564
    put_bits(&pb, 8, 5); //magic
567
    for (i = 0; "vorbis"[i]; i++)
568
        put_bits(&pb, 8, "vorbis"[i]);
565
    ff_put_string(&pb, "vorbis", 0);
569 566

  
570 567
    // codebooks
571 568
    put_bits(&pb, 8, venc->ncodebooks - 1);

Also available in: Unified diff