summaryrefslogtreecommitdiff
path: root/apps/plugins/vbrfix.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/vbrfix.c')
-rw-r--r--apps/plugins/vbrfix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/vbrfix.c b/apps/plugins/vbrfix.c
index 98ca15b6a8..af7b817002 100644
--- a/apps/plugins/vbrfix.c
+++ b/apps/plugins/vbrfix.c
@@ -157,14 +157,15 @@ static bool vbr_fix(const char *selected_file)
157 xingupdate(0); 157 xingupdate(0);
158 158
159 num_frames = rb->count_mp3_frames(fd, entry.first_frame_offset, 159 num_frames = rb->count_mp3_frames(fd, entry.first_frame_offset,
160 flen, xingupdate); 160 flen, xingupdate, audiobuf, audiobuflen);
161 161
162 if(num_frames) { 162 if(num_frames) {
163 /* Note: We don't need to pass a template header because it will be 163 /* Note: We don't need to pass a template header because it will be
164 taken from the mpeg stream */ 164 taken from the mpeg stream */
165 framelen = rb->create_xing_header(fd, entry.first_frame_offset, 165 framelen = rb->create_xing_header(fd, entry.first_frame_offset,
166 flen, xingbuf, num_frames, 0, 166 flen, xingbuf, num_frames, 0,
167 0, xingupdate, true); 167 0, xingupdate, true,
168 audiobuf, audiobuflen);
168 169
169 /* Try to fit the Xing header first in the stream. Replace the existing 170 /* Try to fit the Xing header first in the stream. Replace the existing
170 VBR header if there is one, else see if there is room between the 171 VBR header if there is one, else see if there is room between the