diff options
| author | Tim Redfern <tim@eclectronics.org> | 2014-02-17 13:36:38 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2014-02-17 13:36:38 +0000 |
| commit | 22e28216336da876e1fd17f380ce42eaf1446769 (patch) | |
| tree | 444dad3dc7e2656992d29f34f7bce31970c122a5 /ffmpeg/libavformat/ircamenc.c | |
| parent | ae5e8541f6e06e64c28719467cdf366ac57aff31 (diff) | |
chasing indexing error
Diffstat (limited to 'ffmpeg/libavformat/ircamenc.c')
| -rw-r--r-- | ffmpeg/libavformat/ircamenc.c | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/ffmpeg/libavformat/ircamenc.c b/ffmpeg/libavformat/ircamenc.c deleted file mode 100644 index 38f15fb..0000000 --- a/ffmpeg/libavformat/ircamenc.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * IRCAM muxer - * Copyright (c) 2012 Paul B Mahol - * - * This file is part of FFmpeg. - * - * FFmpeg 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. - * - * FFmpeg 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 FFmpeg; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include "libavutil/intreadwrite.h" -#include "avformat.h" -#include "avio_internal.h" -#include "internal.h" -#include "rawenc.h" -#include "ircam.h" - -static int ircam_write_header(AVFormatContext *s) -{ - AVCodecContext *codec = s->streams[0]->codec; - uint32_t tag; - - if (s->nb_streams != 1) { - av_log(s, AV_LOG_ERROR, "only one stream is supported\n"); - return AVERROR(EINVAL); - } - - tag = ff_codec_get_tag(ff_codec_ircam_le_tags, codec->codec_id); - if (!tag) { - av_log(s, AV_LOG_ERROR, "unsupported codec\n"); - return AVERROR(EINVAL); - } - - avio_wl32(s->pb, 0x0001A364); - avio_wl32(s->pb, av_float2int(codec->sample_rate)); - avio_wl32(s->pb, codec->channels); - avio_wl32(s->pb, tag); - ffio_fill(s->pb, 0, 1008); - return 0; -} - -AVOutputFormat ff_ircam_muxer = { - .name = "ircam", - .extensions = "sf,ircam", - .long_name = NULL_IF_CONFIG_SMALL("Berkeley/IRCAM/CARL Sound Format"), - .audio_codec = AV_CODEC_ID_PCM_S16LE, - .video_codec = AV_CODEC_ID_NONE, - .write_header = ircam_write_header, - .write_packet = ff_raw_write_packet, - .codec_tag = (const AVCodecTag *const []){ ff_codec_ircam_le_tags, 0 }, -}; |
