Mercurial > libavcodec.hg
comparison vorbis_enc.c @ 3836:ff31b13b57df libavcodec
Original Commit: r32 | ods15 | 2006-09-22 18:37:50 +0300 (Fri, 22 Sep 2006) | 2 lines
add framing bit
author | ods15 |
---|---|
date | Mon, 02 Oct 2006 05:56:12 +0000 |
parents | 40acb836a6d3 |
children | 2eb4d646d36b |
comparison
equal
deleted
inserted
replaced
3835:40acb836a6d3 | 3836:ff31b13b57df |
---|---|
544 put_bits(&pb, 16, 0); // reserved window type | 544 put_bits(&pb, 16, 0); // reserved window type |
545 put_bits(&pb, 16, 0); // reserved transform type | 545 put_bits(&pb, 16, 0); // reserved transform type |
546 put_bits(&pb, 8, venc->modes[i].mapping); | 546 put_bits(&pb, 8, venc->modes[i].mapping); |
547 } | 547 } |
548 | 548 |
549 put_bits(&pb, 1, 1); // framing | |
550 | |
549 flush_put_bits(&pb); | 551 flush_put_bits(&pb); |
550 hlens[2] = (put_bits_count(&pb) + 7) / 8; | 552 hlens[2] = (put_bits_count(&pb) + 7) / 8; |
551 | 553 |
552 len = hlens[0] + hlens[1] + hlens[2]; | 554 len = hlens[0] + hlens[1] + hlens[2]; |
553 p = *out = av_mallocz(64 + len + len/255); | 555 p = *out = av_mallocz(64 + len + len/255); |