| OLD | NEW |
| 1 /* | 1 /* |
| 2 * SoX native format demuxer | 2 * SoX native format demuxer |
| 3 * Copyright (c) 2009 Daniel Verkamp <daniel@drv.nu> | 3 * Copyright (c) 2009 Daniel Verkamp <daniel@drv.nu> |
| 4 * | 4 * |
| 5 * Based on libSoX sox-fmt.c | 5 * Based on libSoX sox-fmt.c |
| 6 * Copyright (c) 2008 robs@users.sourceforge.net | 6 * Copyright (c) 2008 robs@users.sourceforge.net |
| 7 * | 7 * |
| 8 * This file is part of FFmpeg. | 8 * This file is part of FFmpeg. |
| 9 * | 9 * |
| 10 * FFmpeg is free software; you can redistribute it and/or | 10 * FFmpeg is free software; you can redistribute it and/or |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * SoX native format demuxer | 26 * SoX native format demuxer |
| 27 * @file | 27 * @file |
| 28 * @author Daniel Verkamp | 28 * @author Daniel Verkamp |
| 29 * @sa http://wiki.multimedia.cx/index.php?title=SoX_native_intermediate_format | 29 * @sa http://wiki.multimedia.cx/index.php?title=SoX_native_intermediate_format |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #include "libavutil/intreadwrite.h" | 32 #include "libavutil/intreadwrite.h" |
| 33 #include "avformat.h" | 33 #include "avformat.h" |
| 34 #include "raw.h" | 34 #include "pcm.h" |
| 35 #include "sox.h" | 35 #include "sox.h" |
| 36 | 36 |
| 37 static int sox_probe(AVProbeData *p) | 37 static int sox_probe(AVProbeData *p) |
| 38 { | 38 { |
| 39 if (AV_RL32(p->buf) == SOX_TAG || AV_RB32(p->buf) == SOX_TAG) | 39 if (AV_RL32(p->buf) == SOX_TAG || AV_RB32(p->buf) == SOX_TAG) |
| 40 return AVPROBE_SCORE_MAX; | 40 return AVPROBE_SCORE_MAX; |
| 41 return 0; | 41 return 0; |
| 42 } | 42 } |
| 43 | 43 |
| 44 static int sox_read_header(AVFormatContext *s, | 44 static int sox_read_header(AVFormatContext *s, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 AVInputFormat sox_demuxer = { | 143 AVInputFormat sox_demuxer = { |
| 144 "sox", | 144 "sox", |
| 145 NULL_IF_CONFIG_SMALL("SoX native format"), | 145 NULL_IF_CONFIG_SMALL("SoX native format"), |
| 146 0, | 146 0, |
| 147 sox_probe, | 147 sox_probe, |
| 148 sox_read_header, | 148 sox_read_header, |
| 149 sox_read_packet, | 149 sox_read_packet, |
| 150 NULL, | 150 NULL, |
| 151 pcm_read_seek, | 151 pcm_read_seek, |
| 152 }; | 152 }; |
| OLD | NEW |