# HG changeset patch # User nenolod # Date 1173734399 25200 # Node ID 420eb823b2d44d0fe85b1918b1260edb30ecd256 # Parent a195f1259a6b56804ce56cd70063f980df627849 [svn] - url_fsize support. - directly link libavutil to our module diff -r a195f1259a6b -r 420eb823b2d4 ChangeLog --- a/ChangeLog Mon Mar 12 14:12:00 2007 -0700 +++ b/ChangeLog Mon Mar 12 14:19:59 2007 -0700 @@ -1,3 +1,14 @@ +2007-03-12 21:12:00 +0000 William Pitcock + revision [1746] + - merge VFS support from wma plugin. + + trunk/src/ffmpeg/libavformat/avformat.h | 7 + trunk/src/ffmpeg/libavformat/avio.c | 107 ++---- + trunk/src/ffmpeg/libavformat/avio.h | 52 --- + trunk/src/ffmpeg/libavformat/aviobuf.c | 553 ++++---------------------------- + 4 files changed, 150 insertions(+), 569 deletions(-) + + 2007-03-12 21:04:53 +0000 William Pitcock revision [1744] - i don't want to hear about deprecation, thanks. diff -r a195f1259a6b -r 420eb823b2d4 src/ffmpeg/Makefile --- a/src/ffmpeg/Makefile Mon Mar 12 14:12:00 2007 -0700 +++ b/src/ffmpeg/Makefile Mon Mar 12 14:19:59 2007 -0700 @@ -7,7 +7,7 @@ LIBDIR = $(plugindir)/$(INPUT_PLUGIN_DIR) -LIBADD = ./libavutil/libavutil.a ./libavformat/libavformat.a $(GTK_LIBS) $(GLIB_LIBS) $(PANGO_LIBS) +LIBADD = ./libavformat/libavformat.a $(GTK_LIBS) $(GLIB_LIBS) $(PANGO_LIBS) SOURCES = ffmpeg.c \ libavcodec/aasc.c \ @@ -66,7 +66,20 @@ libavcodec/wavpack.c \ libavcodec/wmadec.c \ libavcodec/wnv1.c \ - libavcodec/ws-snd1.c + libavcodec/ws-snd1.c \ + libavutil/adler32.c \ + libavutil/crc.c \ + libavutil/fifo.c \ + libavutil/integer.c \ + libavutil/intfloat_readwrite.c \ + libavutil/lls.c \ + libavutil/log.c \ + libavutil/mathematics.c \ + libavutil/md5.c \ + libavutil/mem.c \ + libavutil/rational.c \ + libavutil/softfloat.c \ + OBJECTS = ${SOURCES:.c=.o} diff -r a195f1259a6b -r 420eb823b2d4 src/ffmpeg/libavformat/aviobuf.c --- a/src/ffmpeg/libavformat/aviobuf.c Mon Mar 12 14:12:00 2007 -0700 +++ b/src/ffmpeg/libavformat/aviobuf.c Mon Mar 12 14:19:59 2007 -0700 @@ -395,3 +395,14 @@ return s->max_packet_size; } +offset_t url_fsize(ByteIOContext *s) +{ + offset_t size; + + if (!s->seek) + return -EPIPE; + size = s->seek(s->opaque, -1, SEEK_END) + 1; + s->seek(s->opaque, s->pos, SEEK_SET); + return size; +} + diff -r a195f1259a6b -r 420eb823b2d4 src/ffmpeg/libavutil/Makefile --- a/src/ffmpeg/libavutil/Makefile Mon Mar 12 14:12:00 2007 -0700 +++ b/src/ffmpeg/libavutil/Makefile Mon Mar 12 14:19:59 2007 -0700 @@ -1,18 +1,3 @@ include ../../../mk/rules.mk include ../../../mk/init.mk - -OBJECTIVE_LIBS_NOINST= libavutil.a - -SOURCES = \ -adler32.c integer.c log.c mem.c \ -crc.c intfloat_readwrite.c mathematics.c rational.c \ -fifo.c lls.c md5.c softfloat.c - -CFLAGS+= $(PICFLAGS) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -I../../.. -I../libavformat -I../libavutil -I.. -DHAVE_AV_CONFIG_H - -OBJECTS=${SOURCES:.c=.o} - include ../../../mk/objective.mk - -libavutil.a: $(OBJECTS) - $(AR) cq $@ $(OBJECTS)