Mercurial > libavcodec.hg
comparison mpegaudio.c @ 234:5fc0c3af3fe4 libavcodec
alternative bitstream writer (disabled by default, uncomment #define ALT_BISTREAM_WRITER in common.h if u want to try it)
| author | michaelni |
|---|---|
| date | Tue, 12 Feb 2002 15:43:16 +0000 |
| parents | 2e88e3afecd0 |
| children | fce0a2520551 |
comparison
equal
deleted
inserted
replaced
| 233:3f5b72726118 | 234:5fc0c3af3fe4 |
|---|---|
| 761 init_put_bits(&s->pb, frame, MPA_MAX_CODED_FRAME_SIZE, NULL, NULL); | 761 init_put_bits(&s->pb, frame, MPA_MAX_CODED_FRAME_SIZE, NULL, NULL); |
| 762 | 762 |
| 763 encode_frame(s, bit_alloc, padding); | 763 encode_frame(s, bit_alloc, padding); |
| 764 | 764 |
| 765 s->nb_samples += MPA_FRAME_SIZE; | 765 s->nb_samples += MPA_FRAME_SIZE; |
| 766 return s->pb.buf_ptr - s->pb.buf; | 766 return pbBufPtr(&s->pb) - s->pb.buf; |
| 767 } | 767 } |
| 768 | 768 |
| 769 | 769 |
| 770 AVCodec mp2_encoder = { | 770 AVCodec mp2_encoder = { |
| 771 "mp2", | 771 "mp2", |
