summaryrefslogtreecommitdiff
path: root/libavformat/oma.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-12-17 15:23:13 +0100
committerAnton Khirnov <anton@khirnov.net>2011-12-18 16:17:39 +0100
commitee20b332c872b48cbcf914a2b4adc52aa3e94175 (patch)
tree096f00e5e7bbcce99aa3bae59bb0f5972c64eaa3 /libavformat/oma.c
parent08f7af0c379d9eaa931a93e6e733879237be054d (diff)
omadec: split data that will be used in the muxer to a separate file.
Diffstat (limited to 'libavformat/oma.c')
-rw-r--r--libavformat/oma.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/libavformat/oma.c b/libavformat/oma.c
new file mode 100644
index 0000000000..930991cf00
--- /dev/null
+++ b/libavformat/oma.c
@@ -0,0 +1,33 @@
+/*
+ * Sony OpenMG (OMA) common data
+ *
+ * This file is part of Libav.
+ *
+ * Libav is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * Libav is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with Libav; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "internal.h"
+#include "oma.h"
+#include "libavcodec/avcodec.h"
+
+const uint16_t ff_oma_srate_tab[6] = { 320, 441, 480, 882, 960, 0 };
+
+const AVCodecTag ff_oma_codec_tags[] = {
+ { CODEC_ID_ATRAC3, OMA_CODECID_ATRAC3 },
+ { CODEC_ID_ATRAC3P, OMA_CODECID_ATRAC3P },
+ { CODEC_ID_MP3, OMA_CODECID_MP3 },
+ { CODEC_ID_PCM_S16BE, OMA_CODECID_LPCM },
+ { 0 },
+};