| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Sony OpenMG (OMA) demuxer | 2 * Sony OpenMG (OMA) demuxer |
| 3 * | 3 * |
| 4 * Copyright (c) 2008 Maxim Poliakovski | 4 * Copyright (c) 2008 Maxim Poliakovski |
| 5 * 2008 Benjamin Larsson | 5 * 2008 Benjamin Larsson |
| 6 * | 6 * |
| 7 * This file is part of FFmpeg. | 7 * This file is part of FFmpeg. |
| 8 * | 8 * |
| 9 * FFmpeg is free software; you can redistribute it and/or | 9 * FFmpeg is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Lesser General Public | 10 * modify it under the terms of the GNU Lesser General Public |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 * | 38 * |
| 39 * LIMITATIONS: This version supports only plain (unencrypted) OMA files. | 39 * LIMITATIONS: This version supports only plain (unencrypted) OMA files. |
| 40 * If any DRM-protected (encrypted) file is encountered you will get the | 40 * If any DRM-protected (encrypted) file is encountered you will get the |
| 41 * corresponding error message. Try to remove the encryption using any | 41 * corresponding error message. Try to remove the encryption using any |
| 42 * Sony software (for example SonicStage). | 42 * Sony software (for example SonicStage). |
| 43 * CODEC SUPPORT: Only ATRAC3 codec is currently supported! | 43 * CODEC SUPPORT: Only ATRAC3 codec is currently supported! |
| 44 */ | 44 */ |
| 45 | 45 |
| 46 #include "avformat.h" | 46 #include "avformat.h" |
| 47 #include "libavutil/intreadwrite.h" | 47 #include "libavutil/intreadwrite.h" |
| 48 #include "raw.h" | 48 #include "pcm.h" |
| 49 #include "riff.h" | 49 #include "riff.h" |
| 50 #include "id3v2.h" | 50 #include "id3v2.h" |
| 51 | 51 |
| 52 #define EA3_HEADER_SIZE 96 | 52 #define EA3_HEADER_SIZE 96 |
| 53 | 53 |
| 54 enum { | 54 enum { |
| 55 OMA_CODECID_ATRAC3 = 0, | 55 OMA_CODECID_ATRAC3 = 0, |
| 56 OMA_CODECID_ATRAC3P = 1, | 56 OMA_CODECID_ATRAC3P = 1, |
| 57 OMA_CODECID_MP3 = 3, | 57 OMA_CODECID_MP3 = 3, |
| 58 OMA_CODECID_LPCM = 4, | 58 OMA_CODECID_LPCM = 4, |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 oma_read_header, | 197 oma_read_header, |
| 198 oma_read_packet, | 198 oma_read_packet, |
| 199 0, | 199 0, |
| 200 pcm_read_seek, | 200 pcm_read_seek, |
| 201 .flags= AVFMT_GENERIC_INDEX, | 201 .flags= AVFMT_GENERIC_INDEX, |
| 202 .extensions = "oma,aa3", | 202 .extensions = "oma,aa3", |
| 203 .codec_tag= (const AVCodecTag* const []){codec_oma_tags, 0}, | 203 .codec_tag= (const AVCodecTag* const []){codec_oma_tags, 0}, |
| 204 .metadata_conv = ff_id3v2_metadata_conv, | 204 .metadata_conv = ff_id3v2_metadata_conv, |
| 205 }; | 205 }; |
| 206 | 206 |
| OLD | NEW |