summaryrefslogtreecommitdiffstats
path: root/libavcodec/mlp_parser.c
Commit message (Collapse)AuthorAgeFilesLines
* mlp_parser: Drop in-parser downmix functionalityVittorio Giovara2017-04-271-20/+3
| | | | | | | | | | | | | | | | request_channel_layout is a decoder option and it makes no sense to have it in a parser. This feature was needed in the past when the decoder was allowed to reuse the avctx from the demuxer. Nowadays the decoder receives only the parameters from it, already containing the real channel layout (and the correct request_channel_layout option). After initialization the decoder overwrites the channel layout with the downmixed one that is actually output, so there is no need to preserve this functionality in the parser. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* mlp: Factor out channel layout subset checksVittorio Giovara2017-04-261-11/+11
|
* mlp: Drop ff_ prefix from a static functionVittorio Giovara2017-04-261-2/+2
|
* Use bitstream_init8() where appropriateDiego Biurrun2017-02-071-1/+1
|
* mlp: Convert to the new bitstream readerAlexandra Hájková2016-12-191-31/+32
|
* lavc: Drop deprecated request_channels related functionsVittorio Giovara2015-08-281-22/+0
| | | | Deprecated in 04/2011.
* mlpdec: support major sync headers with optional extension blocksHendrik Leppkes2015-03-111-5/+24
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mlp_parser: fix request_channel_layout behavior.Tim Walker2014-02-081-5/+10
| | | | | | | | | | | When request_channel_layout is 0, all substreams should be decoded. Thanks to Michael Niedermayer for spotting. Also fix a mismatch between the parser and decoder when request_channel_layout is a subset of Stereo.
* mlp: improve request_channel_layout behavior.Tim Walker2014-02-081-2/+3
| | | | | | | | | | Don't decode further substreams if request_channel_layout is a subset of the current substream's channel_layout. Before, we would only discard further substreams if request_channel_layout matched the substream's channel_layout extactly, thus decoding additional channels which the caller would probably end up downmixing.
* mlp: Parse TrueHD decoder channel modifiers and set the AVMatrixEncoding for ↵Tim Walker2014-01-051-2/+5
| | | | each substream.
* Disable deprecation warnings for cases where a replacement is availableDiego Biurrun2013-08-021-0/+5
|
* mlp: implement support for AVCodecContext.request_channel_layout.Tim Walker2013-01-221-6/+23
| | | | | | Also wrap usage of AVCodecContext.request_channels in FF_API_REQUEST_CHANNELS directives. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mlp_parser: account for AVCodecContext.request_channels when setting the ↵Tim Walker2013-01-221-3/+15
| | | | | | | | channel layout. Allows users to configure the output based on what's actually decoded, rather than the full native layout. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mlp: store the channel layout for each substream.Tim Walker2013-01-221-10/+16
| | | | | | | | Also stop storing the channel arrangement in the header info, as it's unused outside of ff_mlp_read_major_sync. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> CC:libav-stable@libav.org
* Include libavutil/channel_layout.h instead of libavutil/audioconvert.hJustin Ruggles2012-11-111-1/+1
| | | | Also reorder some other #include when applicable.
* mlp_parser: avoid mapping multiple disctinct TrueHD channels to the same ↵Tim Walker2012-09-121-2/+2
| | | | | | Libav channel. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-1/+1
|
* mlp_parser: fix the channel mask value used for the top surround channelTim Walker2012-02-251-1/+1
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mlpdec_parser: fix a few channel layouts.Tim Walker2012-02-221-4/+5
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mlp parser: set duration instead of frame_sizeJustin Ruggles2012-02-201-1/+1
|
* Make channel layout masks unsignedMans Rullgard2011-11-251-1/+1
| | | | | | | | | | It makes more sense for a bit mask to use an unsigned type. The change should be source and binary compatible on all supported systems, hence micro version bump. Fixes a few invalid shifts. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavc: use designated initialisers for parsers.Anton Khirnov2011-11-021-5/+5
|
* mlpdec: return meaningful error codes instead of -1Justin Ruggles2011-10-131-3/+3
|
* lavc: add missing audioconvert includesAnton Khirnov2011-04-021-0/+1
|
* mlp_parse.c: set AVCodecContext channel_layoutJohn Stebbins2011-03-301-2/+57
| | | | | | The channel layout isn't getting set for mlp and truehd audio. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-261-1/+1
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-121-2/+2
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-201-1/+1
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlp_parser: Fix memleak.Jai Menon2010-02-231-1/+1
| | | | | | | | ff_combine_frame() is called, which allocates ParseContext->buffer if needed, so ff_parse_close() must be called to free it. Patch by jai. Originally committed as revision 22005 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix possible crashes in mlp parser, it tries to go back 7 bytes afterReimar Döffinger2010-01-271-1/+3
| | | | | | | | finding the 4-byte signature. Add a check that ignores the signature if we do not have enough previous data to go back at least 7 bytes. Originally committed as revision 21487 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename bitstream.h to get_bits.h.Stefano Sabatini2009-04-131-1/+1
| | | | Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split TrueHD decoder from MLPRamiro Polla2009-03-191-1/+1
| | | | Originally committed as revision 18045 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-011-1/+1
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlp: support bit-depths greater than 16 by default.Ramiro Polla2008-12-071-2/+2
| | | | Originally committed as revision 16026 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlp: Fix compilation under CONFIG_AUDIO_NONSHORT.Mathieu Velten2008-12-061-2/+2
| | | | | | Patch by Mathieu Velten < matmaul at gmail dot com > Originally committed as revision 16021 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlp: initialize all CRC tables in a common function.Laurent Aimar2008-12-031-1/+7
| | | | | | | | This way the decoder does not have to depend on the parser being initialized before. Patch by Laurent Aimar <fenrir at via dot ecp dot fr>. Originally committed as revision 15986 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlp: Split common code from parser and decoder to be used by encoder.Ramiro Polla2008-08-131-30/+3
| | | | Originally committed as revision 14733 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlp_parser: Initialize crc data in its own function.Ramiro Polla2008-08-131-4/+9
| | | | Originally committed as revision 14722 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add required stdint.h header #include.Diego Biurrun2008-07-051-0/+2
| | | | Originally committed as revision 14077 to svn://svn.ffmpeg.org/ffmpeg/trunk
* spelling cosmeticsDiego Biurrun2008-07-051-4/+4
| | | | Originally committed as revision 14076 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Clarify comment about parity nibble.Ramiro Polla2008-07-021-1/+2
| | | | Originally committed as revision 14047 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make ff_mlp_read_major_sync() take a GetBitContext instead of buffers.Ramiro Polla2008-07-011-27/+28
| | | | Originally committed as revision 14044 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Seek the file forwards instead of backwards when sync is lost.Ramiro Polla2008-06-271-1/+1
| | | | Originally committed as revision 14014 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make it a little easier to spot that the code is not dealing only withRamiro Polla2008-06-251-2/+2
| | | | | | substream headers. Originally committed as revision 13961 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full path for #includes from another directory.Diego Biurrun2008-05-091-1/+1
| | | | Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: spelling fixesDiego Biurrun2007-12-031-5/+5
| | | | Originally committed as revision 11155 to svn://svn.ffmpeg.org/ffmpeg/trunk
* MLP/TrueHD parserIan Caulfield2007-11-281-0/+307
Patch by Ian Caulfield, ian D caulfield <at> gmail D com Thread: [PATCH] MLP/TrueHD decoder, 12 Oct 14:26 Originally committed as revision 11109 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud