aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/assdec.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2010-07-21 21:39:01 +0000
committerAurelien Jacobs <aurel@gnuage.org>2010-07-21 21:39:01 +0000
commit7c89295145559b269cf8e257b735386016ef1814 (patch)
treeaf29e4d793271e6205593a5b54e152055306a714 /libavformat/assdec.c
parent80769fb73f20829cd2c1a0e8e56d41204b487049 (diff)
downloadffmpeg-7c89295145559b269cf8e257b735386016ef1814.tar.gz
move ff_get_line to aviobuf.c
Originally committed as revision 24399 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/assdec.c')
-rw-r--r--libavformat/assdec.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/libavformat/assdec.c b/libavformat/assdec.c
index 0fc9e8a772..ecc9a07888 100644
--- a/libavformat/assdec.c
+++ b/libavformat/assdec.c
@@ -20,6 +20,7 @@
*/
#include "avformat.h"
+#include "internal.h"
#define MAX_LINESIZE 2000
@@ -30,20 +31,6 @@ typedef struct ASSContext{
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]";