[FFmpeg-cvslog] Add LATM demuxer
Janne Grunau
git at videolan.org
Fri Sep 23 00:37:51 CEST 2011
ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Tue Sep 6 22:08:29 2011 +0200| [dcb9f6a20dbddd1f95b6b322fc4c5fd0b5315729] | committer: Janne Grunau
Add LATM demuxer
This is a raw demuxer for the AAC LATM decoder and thus limited to
single stream LOAS.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dcb9f6a20dbddd1f95b6b322fc4c5fd0b5315729
---
Changelog | 2 +-
libavformat/Makefile | 1 +
libavformat/allformats.c | 2 +-
libavformat/rawdec.c | 12 ++++++++++++
libavformat/version.h | 2 +-
5 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/Changelog b/Changelog
index 3cd2c0d..bbe6a60 100644
--- a/Changelog
+++ b/Changelog
@@ -42,7 +42,7 @@ easier to use. The changes are:
* -intra option was removed, it's equivalent to -g 0.
- XMV demuxer
- Windows Media Image decoder
-- LATM muxer
+- LATM muxer/demuxer
- showinfo filter
- split filter
- libcdio-paranoia input device for audio CD grabbing
diff --git a/libavformat/Makefile b/libavformat/Makefile
index 06c2027..59dd42f 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -109,6 +109,7 @@ OBJS-$(CONFIG_IV8_DEMUXER) += iv8.o
OBJS-$(CONFIG_IVF_DEMUXER) += ivfdec.o riff.o
OBJS-$(CONFIG_IVF_MUXER) += ivfenc.o
OBJS-$(CONFIG_JV_DEMUXER) += jvdec.o
+OBJS-$(CONFIG_LATM_DEMUXER) += rawdec.o
OBJS-$(CONFIG_LATM_MUXER) += latmenc.o
OBJS-$(CONFIG_LMLM4_DEMUXER) += lmlm4.o
OBJS-$(CONFIG_LXF_DEMUXER) += lxfdec.o
diff --git a/libavformat/allformats.c b/libavformat/allformats.c
index d640340..8e89b2f 100644
--- a/libavformat/allformats.c
+++ b/libavformat/allformats.c
@@ -113,7 +113,7 @@ void av_register_all(void)
REGISTER_DEMUXER (IV8, iv8);
REGISTER_MUXDEMUX (IVF, ivf);
REGISTER_DEMUXER (JV, jv);
- REGISTER_MUXER (LATM, latm);
+ REGISTER_MUXDEMUX (LATM, latm);
REGISTER_DEMUXER (LMLM4, lmlm4);
REGISTER_DEMUXER (LXF, lxf);
REGISTER_MUXDEMUX (M4V, m4v);
diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
index 35df5e2..9b3ef49 100644
--- a/libavformat/rawdec.c
+++ b/libavformat/rawdec.c
@@ -198,6 +198,18 @@ AVInputFormat ff_gsm_demuxer = {
};
#endif
+#if CONFIG_LATM_DEMUXER
+AVInputFormat ff_latm_demuxer = {
+ .name = "latm",
+ .long_name = NULL_IF_CONFIG_SMALL("raw LOAS/LATM"),
+ .read_header = ff_raw_audio_read_header,
+ .read_packet = ff_raw_read_partial_packet,
+ .flags= AVFMT_GENERIC_INDEX,
+ .extensions = "latm",
+ .value = CODEC_ID_AAC_LATM,
+};
+#endif
+
#if CONFIG_MJPEG_DEMUXER
FF_DEF_RAWVIDEO_DEMUXER(mjpeg, "raw MJPEG video", NULL, "mjpg,mjpeg", CODEC_ID_MJPEG)
#endif
diff --git a/libavformat/version.h b/libavformat/version.h
index 2d64826..82a07db 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -24,7 +24,7 @@
#include "libavutil/avutil.h"
#define LIBAVFORMAT_VERSION_MAJOR 53
-#define LIBAVFORMAT_VERSION_MINOR 7
+#define LIBAVFORMAT_VERSION_MINOR 8
#define LIBAVFORMAT_VERSION_MICRO 0
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
More information about the ffmpeg-cvslog
mailing list