| OLD | NEW |
| 1 /* | 1 /* |
| 2 * AU muxer and demuxer | 2 * AU muxer and demuxer |
| 3 * Copyright (c) 2001 Fabrice Bellard | 3 * Copyright (c) 2001 Fabrice Bellard |
| 4 * | 4 * |
| 5 * This file is part of FFmpeg. | 5 * This file is part of FFmpeg. |
| 6 * | 6 * |
| 7 * FFmpeg is free software; you can redistribute it and/or | 7 * FFmpeg is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 /* | 22 /* |
| 23 * First version by Francois Revol revol@free.fr | 23 * First version by Francois Revol revol@free.fr |
| 24 * | 24 * |
| 25 * Reference documents: | 25 * Reference documents: |
| 26 * http://www.opengroup.org/public/pubs/external/auformat.html | 26 * http://www.opengroup.org/public/pubs/external/auformat.html |
| 27 * http://www.goice.co.jp/member/mo/formats/au.html | 27 * http://www.goice.co.jp/member/mo/formats/au.html |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #include "avformat.h" | 30 #include "avformat.h" |
| 31 #include "raw.h" | 31 #include "pcm.h" |
| 32 #include "riff.h" | 32 #include "riff.h" |
| 33 | 33 |
| 34 /* if we don't know the size in advance */ | 34 /* if we don't know the size in advance */ |
| 35 #define AU_UNKNOWN_SIZE ((uint32_t)(~0)) | 35 #define AU_UNKNOWN_SIZE ((uint32_t)(~0)) |
| 36 | 36 |
| 37 /* The ffmpeg codecs we support, and the IDs they have in the file */ | 37 /* The ffmpeg codecs we support, and the IDs they have in the file */ |
| 38 static const AVCodecTag codec_au_tags[] = { | 38 static const AVCodecTag codec_au_tags[] = { |
| 39 { CODEC_ID_PCM_MULAW, 1 }, | 39 { CODEC_ID_PCM_MULAW, 1 }, |
| 40 { CODEC_ID_PCM_S8, 2 }, | 40 { CODEC_ID_PCM_S8, 2 }, |
| 41 { CODEC_ID_PCM_S16BE, 3 }, | 41 { CODEC_ID_PCM_S16BE, 3 }, |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 "au", | 204 "au", |
| 205 0, | 205 0, |
| 206 CODEC_ID_PCM_S16BE, | 206 CODEC_ID_PCM_S16BE, |
| 207 CODEC_ID_NONE, | 207 CODEC_ID_NONE, |
| 208 au_write_header, | 208 au_write_header, |
| 209 au_write_packet, | 209 au_write_packet, |
| 210 au_write_trailer, | 210 au_write_trailer, |
| 211 .codec_tag= (const AVCodecTag* const []){codec_au_tags, 0}, | 211 .codec_tag= (const AVCodecTag* const []){codec_au_tags, 0}, |
| 212 }; | 212 }; |
| 213 #endif //CONFIG_AU_MUXER | 213 #endif //CONFIG_AU_MUXER |
| OLD | NEW |