Skip to content

Commit

Permalink
encoder: use ogg ogg_packet class everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jan 30, 2013
1 parent 21963a7 commit a44f67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/encoder.js
Expand Up @@ -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) {
Expand Down

0 comments on commit a44f67b

Please sign in to comment.