changeset 2534:bbfeec27c98c libavformat

Separate audio_(de)muxer into oss_(de)muxer and audio_beos_(de)muxer
author ramiro
date Fri, 07 Sep 2007 13:43:40 +0000
parents 5f44093c0cdc
children 2ede5472f331
files Makefile allformats.c allformats.h audio.c beosaudio.cpp
diffstat 5 files changed, 18 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Sep 06 05:14:09 2007 +0000
+++ b/Makefile	Fri Sep 07 13:43:40 2007 +0000
@@ -25,8 +25,6 @@
 OBJS-$(CONFIG_ASF_STREAM_MUXER)          += asf-enc.o riff.o
 OBJS-$(CONFIG_AU_DEMUXER)                += au.o raw.o
 OBJS-$(CONFIG_AU_MUXER)                  += au.o
-OBJS-$(CONFIG_AUDIO_DEMUXER)             += audio.o
-OBJS-$(CONFIG_AUDIO_MUXER)               += audio.o
 OBJS-$(CONFIG_AVI_DEMUXER)               += avidec.o riff.o
 OBJS-$(CONFIG_AVI_MUXER)                 += avienc.o riff.o
 OBJS-$(CONFIG_AVISYNTH)                  += avisynth.o
@@ -113,6 +111,8 @@
                                             oggparseogm.o    \
                                             riff.o
 OBJS-$(CONFIG_OGG_MUXER)                 += ogg.o
+OBJS-$(CONFIG_OSS_DEMUXER)               += audio.o
+OBJS-$(CONFIG_OSS_MUXER)                 += audio.o
 OBJS-$(CONFIG_PSP_MUXER)                 += movenc.o riff.o isom.o
 OBJS-$(CONFIG_RAWVIDEO_DEMUXER)          += raw.o
 OBJS-$(CONFIG_RAWVIDEO_MUXER)            += raw.o
@@ -163,7 +163,8 @@
 EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) \
              -lavcodec$(BUILDSUF) -L$(BUILD_ROOT)/libavcodec $(EXTRALIBS)
 
-CPPOBJS-$(CONFIG_AUDIO_BEOS)             += beosaudio.o
+CPPOBJS-$(CONFIG_AUDIO_BEOS_DEMUXER)     += beosaudio.o
+CPPOBJS-$(CONFIG_AUDIO_BEOS_MUXER)       += beosaudio.o
 
 # protocols I/O
 OBJS+= avio.o aviobuf.o
--- a/allformats.c	Thu Sep 06 05:14:09 2007 +0000
+++ b/allformats.c	Fri Sep 07 13:43:40 2007 +0000
@@ -55,7 +55,7 @@
     REGISTER_MUXDEMUX (ASF, asf);
     REGISTER_MUXER    (ASF_STREAM, asf_stream);
     REGISTER_MUXDEMUX (AU, au);
-    REGISTER_MUXDEMUX (AUDIO, audio);
+    REGISTER_MUXDEMUX (AUDIO_BEOS, audio_beos);
     REGISTER_MUXDEMUX (AVI, avi);
 #ifdef CONFIG_AVISYNTH
     av_register_input_format(&avisynth_demuxer);
@@ -121,6 +121,7 @@
     REGISTER_MUXDEMUX (NUT, nut);
     REGISTER_DEMUXER  (NUV, nuv);
     REGISTER_MUXDEMUX (OGG, ogg);
+    REGISTER_MUXDEMUX (OSS, oss);
     REGISTER_MUXDEMUX (PCM_ALAW,  pcm_alaw);
     REGISTER_MUXDEMUX (PCM_MULAW, pcm_mulaw);
     REGISTER_MUXDEMUX (PCM_S16BE, pcm_s16be);
--- a/allformats.h	Thu Sep 06 05:14:09 2007 +0000
+++ b/allformats.h	Fri Sep 07 13:43:40 2007 +0000
@@ -31,7 +31,7 @@
 extern AVInputFormat apc_demuxer;
 extern AVInputFormat asf_demuxer;
 extern AVInputFormat au_demuxer;
-extern AVInputFormat audio_demuxer;
+extern AVInputFormat audio_beos_demuxer;
 extern AVInputFormat avi_demuxer;
 extern AVInputFormat avisynth_demuxer;
 extern AVInputFormat avs_demuxer;
@@ -82,6 +82,7 @@
 extern AVInputFormat nut_demuxer;
 extern AVInputFormat nuv_demuxer;
 extern AVInputFormat ogg_demuxer;
+extern AVInputFormat oss_demuxer;
 extern AVInputFormat pcm_alaw_demuxer;
 extern AVInputFormat pcm_mulaw_demuxer;
 extern AVInputFormat pcm_s16be_demuxer;
@@ -125,7 +126,7 @@
 extern AVOutputFormat asf_muxer;
 extern AVOutputFormat asf_stream_muxer;
 extern AVOutputFormat au_muxer;
-extern AVOutputFormat audio_muxer;
+extern AVOutputFormat audio_beos_muxer;
 extern AVOutputFormat avi_muxer;
 extern AVOutputFormat crc_muxer;
 extern AVOutputFormat dv_muxer;
@@ -164,6 +165,7 @@
 extern AVOutputFormat null_muxer;
 extern AVOutputFormat nut_muxer;
 extern AVOutputFormat ogg_muxer;
+extern AVOutputFormat oss_muxer;
 extern AVOutputFormat pcm_alaw_muxer;
 extern AVOutputFormat pcm_mulaw_muxer;
 extern AVOutputFormat pcm_s16be_muxer;
--- a/audio.c	Thu Sep 06 05:14:09 2007 +0000
+++ b/audio.c	Fri Sep 07 13:43:40 2007 +0000
@@ -307,8 +307,8 @@
     return 0;
 }
 
-#ifdef CONFIG_AUDIO_DEMUXER
-AVInputFormat audio_demuxer = {
+#ifdef CONFIG_OSS_DEMUXER
+AVInputFormat oss_demuxer = {
     "audio_device",
     "audio grab and output",
     sizeof(AudioData),
@@ -320,8 +320,8 @@
 };
 #endif
 
-#ifdef CONFIG_AUDIO_MUXER
-AVOutputFormat audio_muxer = {
+#ifdef CONFIG_OSS_MUXER
+AVOutputFormat oss_muxer = {
     "audio_device",
     "audio grab and output",
     "",
--- a/beosaudio.cpp	Thu Sep 06 05:14:09 2007 +0000
+++ b/beosaudio.cpp	Fri Sep 07 13:43:40 2007 +0000
@@ -421,7 +421,7 @@
     return 0;
 }
 
-static AVInputFormat audio_demuxer = {
+static AVInputFormat audio_beos_demuxer = {
     "audio_device",
     "audio grab and output",
     sizeof(AudioData),
@@ -433,7 +433,7 @@
     AVFMT_NOFILE,
 };
 
-AVOutputFormat audio_muxer = {
+AVOutputFormat audio_beos_muxer = {
     "audio_device",
     "audio grab and output",
     "",
@@ -456,8 +456,8 @@
 int audio_init(void)
 {
     main_thid = find_thread(NULL);
-    av_register_input_format(&audio_demuxer);
-    av_register_output_format(&audio_muxer);
+    av_register_input_format(&audio_beos_demuxer);
+    av_register_output_format(&audio_beos_muxer);
     return 0;
 }