| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Yamaha SMAF format | 2 * Yamaha SMAF format |
| 3 * Copyright (c) 2005 Vidar Madsen | 3 * Copyright (c) 2005 Vidar Madsen |
| 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. |
| 11 * | 11 * |
| 12 * FFmpeg is distributed in the hope that it will be useful, | 12 * FFmpeg is distributed in the hope that it will be useful, |
| 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 * Lesser General Public License for more details. | 15 * Lesser General Public License for more details. |
| 16 * | 16 * |
| 17 * You should have received a copy of the GNU Lesser General Public | 17 * You should have received a copy of the GNU Lesser General Public |
| 18 * License along with FFmpeg; if not, write to the Free Software | 18 * License along with FFmpeg; if not, write to the Free Software |
| 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 */ | 20 */ |
| 21 #include "avformat.h" | 21 #include "avformat.h" |
| 22 #include "raw.h" | 22 #include "pcm.h" |
| 23 #include "riff.h" | 23 #include "riff.h" |
| 24 | 24 |
| 25 typedef struct { | 25 typedef struct { |
| 26 int64_t atrpos, atsqpos, awapos; | 26 int64_t atrpos, atsqpos, awapos; |
| 27 int64_t data_size; | 27 int64_t data_size; |
| 28 } MMFContext; | 28 } MMFContext; |
| 29 | 29 |
| 30 static const int mmf_rates[] = { 4000, 8000, 11025, 22050, 44100 }; | 30 static const int mmf_rates[] = { 4000, 8000, 11025, 22050, 44100 }; |
| 31 | 31 |
| 32 static int mmf_rate(int code) | 32 static int mmf_rate(int code) |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 "application/vnd.smaf", | 309 "application/vnd.smaf", |
| 310 "mmf", | 310 "mmf", |
| 311 sizeof(MMFContext), | 311 sizeof(MMFContext), |
| 312 CODEC_ID_ADPCM_YAMAHA, | 312 CODEC_ID_ADPCM_YAMAHA, |
| 313 CODEC_ID_NONE, | 313 CODEC_ID_NONE, |
| 314 mmf_write_header, | 314 mmf_write_header, |
| 315 mmf_write_packet, | 315 mmf_write_packet, |
| 316 mmf_write_trailer, | 316 mmf_write_trailer, |
| 317 }; | 317 }; |
| 318 #endif | 318 #endif |
| OLD | NEW |