[FFmpeg-cvslog] avrdec: implement seeking
Paul B Mahol
git at videolan.org
Wed Nov 28 14:08:14 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Nov 28 13:03:48 2012 +0000| [23101ceaa226f6ea22141a4d5fc167fed832074c] | committer: Paul B Mahol
avrdec: implement seeking
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=23101ceaa226f6ea22141a4d5fc167fed832074c
---
libavformat/Makefile | 2 +-
libavformat/avr.c | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavformat/Makefile b/libavformat/Makefile
index 463ce32..f0d2105 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -58,7 +58,7 @@ OBJS-$(CONFIG_AVI_DEMUXER) += avidec.o
OBJS-$(CONFIG_AVI_MUXER) += avienc.o
OBJS-$(CONFIG_AVISYNTH) += avisynth.o
OBJS-$(CONFIG_AVM2_MUXER) += swfenc.o swf.o
-OBJS-$(CONFIG_AVR_DEMUXER) += avr.o rawdec.o
+OBJS-$(CONFIG_AVR_DEMUXER) += avr.o rawdec.o pcm.o
OBJS-$(CONFIG_AVS_DEMUXER) += avs.o vocdec.o voc.o
OBJS-$(CONFIG_BETHSOFTVID_DEMUXER) += bethsoftvid.o
OBJS-$(CONFIG_BFI_DEMUXER) += bfi.o
diff --git a/libavformat/avr.c b/libavformat/avr.c
index c73df96..d3b23db 100644
--- a/libavformat/avr.c
+++ b/libavformat/avr.c
@@ -23,6 +23,7 @@
#include "avformat.h"
#include "internal.h"
#include "rawdec.h"
+#include "pcm.h"
static int avr_probe(AVProbeData *p)
{
@@ -92,5 +93,7 @@ AVInputFormat ff_avr_demuxer = {
.read_probe = avr_probe,
.read_header = avr_read_header,
.read_packet = ff_raw_read_partial_packet,
+ .read_seek = ff_pcm_read_seek,
.extensions = "avr",
+ .flags = AVFMT_GENERIC_INDEX,
};
More information about the ffmpeg-cvslog
mailing list