aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder (follow)
Commit message (Collapse)AuthorAgeFilesLines
* PcmConvert: Convert() returns ConstBufferMax Kellermann2014-08-121-3/+6
|
* MusicChunk: rename struct to MusicChunkMax Kellermann2014-08-124-6/+7
|
* decoder/Mp4v2: fix crash with undefined errorAndrée Ekroth2014-08-081-6/+4
| | | | | | | | | When no track is found the error is now properly set. Previously the calling function tried to log an undefined error, which resulted in a crash. MPD falls back to ffmpeg for unsupported tracks, such as ALAC. This should fix issue 4051.
* decoder/Mp4v2: add MP4v2 decoder pluginAndrée Ekroth2014-08-073-0/+355
| | | | | This plugin uses the MP4v2 library to play mp4/m4a files. It is limited to file_decode.
* decoder/dsdiff: move artist/title/id3 offsets out of DsdiffMetaDataMax Kellermann2014-07-121-22/+14
| | | | They are only used inside dsdiff_read_metadata_extra().
* Merge branch 'v0.18.x'Max Kellermann2014-07-121-12/+9
|\
| * decoder/dsdiff: simplify dsdlib_skip() callMax Kellermann2014-07-121-4/+3
| |
| * decoder/dsdiff: simplify loop condition, merge branchesMax Kellermann2014-07-121-7/+2
| |
| * decoder/dsdiff: ignore garbage null byte at end of fileMax Kellermann2014-07-121-1/+1
| | | | | | | | | | Failure to read another chunk header is not fatal. Continue to read metadata.
| * decoder/dsdiff: fix metadata parser bug (uninitialized variables)Max Kellermann2014-07-121-1/+4
| |
* | DecoderBuffer: implement _skip() using decoder_skip()Max Kellermann2014-07-121-17/+8
| |
* | DecoderBuffer: add method _need()Max Kellermann2014-07-123-31/+42
| | | | | | | | Move code from the FAAD decoder plugin.
* | DecoderBuffer: remove unused method _is_full()Max Kellermann2014-07-122-10/+0
| |
* | decoder/faad: eliminate the adts_find_frame() loopMax Kellermann2014-07-121-5/+2
| | | | | | | | | | This loop is completely unnecessary. We just need to find the first ADTS frame and feed it into NeAACDecInit().
* | decoder/faad: split faad_stream_decode()Max Kellermann2014-07-121-10/+16
| | | | | | | | Eliminate duplicate cleanup code.
* | DecoderBuffer: remove unused method _is_empty()Max Kellermann2014-07-122-10/+0
| |
* | Merge branch 'v0.18.x'Max Kellermann2014-07-123-54/+99
|\|
| * decoder/faad: estimate song duration for remote filesMax Kellermann2014-07-121-0/+22
| | | | | | | | | | | | | | | | Previously, MPD tried to slurp the whole song file, count the number of frames and calculate the song duration from that. That however is extremely expensive for remote files, and will delay playback for a long time. Workaround: check only the first 128 frames and try to extrapolate from here. Fixes Mantis ticket 0004035.
| * decoder/faad: bail out early if sample rate is invalidMax Kellermann2014-07-121-0/+2
| |
| * decoder/faad: use adts_check_frame() in faad_song_duration()Max Kellermann2014-07-121-2/+1
| | | | | | | | Eliminate more duplicate code.
| * decoder/faad: test "seekable" after ADTS frame checkMax Kellermann2014-07-121-1/+5
| | | | | | | | | | Don't bother to check for ADIF just because the stream is not seekable.
| * decoder/faad: move code to faad_decoder_new()Max Kellermann2014-07-121-14/+17
| | | | | | | | Merge some duplicate code.
| * decoder/faad: remove unnecessary readMax Kellermann2014-07-121-2/+0
| | | | | | | | Eliminate some overhead when the caller doesn't need the buffer.
| * DecoderBuffer: add method _clear()Max Kellermann2014-07-121-8/+3
| |
| * decoder/faad: check sample_rate, not frames_per_secondMax Kellermann2014-07-111-2/+4
| | | | | | | | Checking the integer is faster, easier and more reliable.
| * decoder/faad: make variables more localMax Kellermann2014-07-111-71/+49
| |
| * decoder/faad: use MAX_CHANNELSMax Kellermann2014-07-111-4/+2
| | | | | | | | .. instead of declaring a new constant.
* | decoder/sndfile: implement scan_stream() instead of scan_file()Max Kellermann2014-07-111-5/+6
| |
* | decoder/sndfile: make variables more localMax Kellermann2014-07-111-10/+7
| |
* | decoder/sndfile: support more tag typesMax Kellermann2014-07-111-0/+4
| |
* | decoder/sndfile: add str_type to TagType tableMax Kellermann2014-07-111-3/+11
| |
* | decoder/sndfile: move code to sndfile_handle_tag()Max Kellermann2014-07-111-15/+12
| |
* | decoder/sndfile: log libsndfile version on startupMax Kellermann2014-07-111-1/+8
| |
* | Merge branch 'v0.18.x'Max Kellermann2014-07-112-30/+31
|\|
| * decoder/sndfile: use decoder_read_full()Max Kellermann2014-07-111-16/+6
| | | | | | | | | | Replaces the loop in sndfile_vio_read(), eliminating duplicate and fragile code.
| * decoder/sndfile: use decoder_read()Max Kellermann2014-07-111-16/+22
| | | | | | | | .. instead of InputStream::LockRead(). The former is cancellable.
| * decoder/sndfile: log seek errorsMax Kellermann2014-07-111-1/+4
| |
| * decoder/audiofile: log seek errorsMax Kellermann2014-07-111-0/+1
| |
| * decoder/audiofile: fix typo in commentMax Kellermann2014-07-111-1/+1
| |
* | decoder/audiofile: log libaudiofile errorsMax Kellermann2014-07-101-4/+15
| |
* | decoder/audiofile: make variables more localMax Kellermann2014-07-101-28/+24
| |
* | decoder/audiofile: implement scan_stream() instead of scan_file()Max Kellermann2014-07-101-23/+23
| |
* | decoder/audiofile: use audiofile_get_duration() in _stream_decode()Max Kellermann2014-07-101-5/+2
| |
* | decoder/audiofile: split audiofile_get_duration()Max Kellermann2014-07-101-4/+11
| |
* | decoder/audiofile: remove unused Error variableMax Kellermann2014-07-091-1/+0
| |
* | Merge branch 'v0.18.x'Max Kellermann2014-07-096-46/+49
|\|
| * decoder/dsd: use decoder_read_full() where appropriateJoff2014-07-094-31/+19
| | | | | | | | | | | | | | Addresses Mantis ticket 0004015. [mk: use decoder_read_full() only when needed, and a few formal changes]
| * decoder/audiofile: use decoder_read_full()Max Kellermann2014-07-091-1/+6
| | | | | | | | | | Works around WAV stream playback bug, because libaudiofile does not like partial reads (Mantis 0004028).
| * DecoderAPI: add function decoder_read_full()Max Kellermann2014-07-091-12/+2
| | | | | | | | Move code from the "mad" plugin.
| * DecoderAPI: add function decoder_skip()Max Kellermann2014-07-091-14/+1
| | | | | | | | Move code from the "mad" plugin.