summaryrefslogtreecommitdiff
path: root/libavformat/raw.c
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2004-06-19 14:51:46 +0000
committerMike Melanson <mike@multimedia.cx>2004-06-19 14:51:46 +0000
commit9be653d0e995d01155528ed0d0d01894f52ae047 (patch)
tree1922fdccc8da517b5187ed5dd24bbdbdcb63085e /libavformat/raw.c
parent0bd586c50dc27ec38ca94e58f50030544d729463 (diff)
cvs diff before cvs commit
Originally committed as revision 3240 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/raw.c')
-rw-r--r--libavformat/raw.c71
1 files changed, 0 insertions, 71 deletions
diff --git a/libavformat/raw.c b/libavformat/raw.c
index adcc2fd161..9a79ac7b06 100644
--- a/libavformat/raw.c
+++ b/libavformat/raw.c
@@ -601,73 +601,6 @@ AVOutputFormat null_oformat = {
};
#endif //CONFIG_ENCODERS
-static int adx_probe(AVProbeData *p)
-{
- if (is_adx(p->buf,p->buf_size))
- return 100;
- return 0;
-}
-
-static int adx_read_header(AVFormatContext *s,
- AVFormatParameters *ap)
-{
- AVStream *st;
-
- st = av_new_stream(s, 0);
- if (!st)
- return AVERROR_NOMEM;
-
- st->codec.codec_type = CODEC_TYPE_AUDIO;
- st->codec.codec_id = CODEC_ID_ADPCM_ADX;
- /* the parameters will be extracted from the compressed bitstream */
- return 0;
-}
-
-AVInputFormat adx_iformat = {
- "adx",
- "SEGA CRI ADX audio",
- 0,
- adx_probe,
- adx_read_header,
- raw_read_packet,
- raw_read_close,
- .extensions = "adx", //FIXME remove after writing mpeg4_probe
-};
-
-#ifdef CONFIG_ENCODERS
-
-static int adx_write_trailer(AVFormatContext *s)
-{
- ByteIOContext *pb = &s->pb;
- offset_t file_size;
-
- if (!url_is_streamed(&s->pb)) {
- /* update file size */
- file_size = url_ftell(pb);
- url_fseek(pb, 0, SEEK_SET);
- put_be32(pb, (uint32_t)(file_size - 8));
- url_fseek(pb, file_size, SEEK_SET);
-
- put_flush_packet(pb);
- }
- return 0;
-}
-
-AVOutputFormat adx_oformat = {
- "adx",
- "SEGA CRI ADX audio",
- NULL,
- "adx",
- 0,
- CODEC_ID_ADPCM_ADX,
- 0,
- raw_write_header,
- raw_write_packet,
- raw_write_trailer,
-};
-#endif //CONFIG_ENCODERS
-
-
#ifndef CONFIG_ENCODERS
#define av_register_output_format(format)
#endif
@@ -718,9 +651,5 @@ int raw_init(void)
av_register_output_format(&rawvideo_oformat);
av_register_output_format(&null_oformat);
-
- av_register_input_format(&adx_iformat);
- av_register_output_format(&adx_oformat);
-
return 0;
}