Permalink
Browse files

encoder: use ogg `ogg_packet` class everywhere

  • Loading branch information...
1 parent 21963a7 commit a44f67bae4b857ff9d45208af1adeb6f3abc58bb @TooTallNate committed Jan 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/encoder.js
View
@@ -260,7 +260,7 @@ Encoder.prototype._blockout = function (output, fn) {
Encoder.prototype._flushpacket = function (output, fn) {
debug('_flushpacket()');
var self = this;
- var packet = new Buffer(binding.sizeof_ogg_packet);
+ var packet = new ogg_packet();
binding.vorbis_bitrate_flushpacket(this.vd, packet, function (rtn) {
debug('vorbis_bitrate_flushpacket() return = %d', rtn);
if (1 === rtn) {

0 comments on commit a44f67b

Please sign in to comment.