projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add documentation to struct rc4_context.
[paraslash.git]
/
mp3dec_filter.c
diff --git
a/mp3dec_filter.c
b/mp3dec_filter.c
index 90293f0a7e0e76dd2b53daf5901b4f185533861d..aceee9ae686666583f5b6a3bfbbc515cbc4c6328 100644
(file)
--- a/
mp3dec_filter.c
+++ b/
mp3dec_filter.c
@@
-6,6
+6,9
@@
/** \file mp3dec_filter.c Paraslash's mp3 decoder. */
/** \file mp3dec_filter.c Paraslash's mp3 decoder. */
+#include <mad.h>
+#include <regex.h>
+
#include "para.h"
#include "mp3dec_filter.cmdline.h"
#include "list.h"
#include "para.h"
#include "mp3dec_filter.cmdline.h"
#include "list.h"
@@
-13,7
+16,6
@@
#include "ggo.h"
#include "filter.h"
#include "error.h"
#include "ggo.h"
#include "filter.h"
#include "error.h"
-#include <mad.h>
#include "string.h"
/** Convert a sample value from libmad to a signed short. */
#include "string.h"
/** Convert a sample value from libmad to a signed short. */
@@
-84,8
+86,8
@@
next_frame:
out:
if (pmd->stream.next_frame) { /* we still have some data */
size_t off = pmd->stream.bufend - pmd->stream.next_frame;
out:
if (pmd->stream.next_frame) { /* we still have some data */
size_t off = pmd->stream.bufend - pmd->stream.next_frame;
-// PARA_INFO_LOG("off: %zd, rate: %u, returning %zd\n", off,
-
// fn->fc->samplerate, copy - off)
;
+ if (fn->loaded + 16384 <= fn->bufsize && off > 2048)
+
goto next_frame
;
return copy - off;
}
return copy;
return copy - off;
}
return copy;