Originally committed as revision 24399 to svn://svn.ffmpeg.org/ffmpeg/trunk
*/
#include "avformat.h"
+#include "internal.h"
#define MAX_LINESIZE 2000
unsigned int event_index;
}ASSContext;
-static void ff_get_line(ByteIOContext *s, char *buf, int maxlen)
-{
- int i = 0;
- char c;
-
- do{
- c = get_byte(s);
- if (i < maxlen-1)
- buf[i++] = c;
- }while(c != '\n' && c);
-
- buf[i] = 0;
-}
-
static int probe(AVProbeData *p)
{
const char *header= "[Script Info]";
return buf;
}
+void ff_get_line(ByteIOContext *s, char *buf, int maxlen)
+{
+ int i = 0;
+ char c;
+
+ do {
+ c = get_byte(s);
+ if (i < maxlen-1)
+ buf[i++] = c;
+ } while (c != '\n' && c);
+
+ buf[i] = 0;
+}
+
uint64_t get_be64(ByteIOContext *s)
{
uint64_t val;
*/
void ff_put_v(ByteIOContext *bc, uint64_t val);
+void ff_get_line(ByteIOContext *s, char *buf, int maxlen);
+
#define SPACE_CHARS " \t\r\n"
#endif /* AVFORMAT_INTERNAL_H */