summaryrefslogtreecommitdiff
path: root/libavcodec/mlp_parser.c
Commit message (Collapse)AuthorAge
* lavc: Drop deprecated request_channels related functionsVittorio Giovara2015-08-28
| | | | Deprecated in 04/2011.
* mlpdec: support major sync headers with optional extension blocksHendrik Leppkes2015-03-11
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mlp_parser: fix request_channel_layout behavior.Tim Walker2014-02-08
| | | | | | | | | | | 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-08
| | | | | | | | | | 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-05
| | | | each substream.
* Disable deprecation warnings for cases where a replacement is availableDiego Biurrun2013-08-02
|
* mlp: implement support for AVCodecContext.request_channel_layout.Tim Walker2013-01-22
| | | | | | 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-22
| | | | | | | | 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-22
| | | | | | | | 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-11
| | | | Also reorder some other #include when applicable.
* mlp_parser: avoid mapping multiple disctinct TrueHD channels to the same ↵Tim Walker2012-09-12
| | | | | | Libav channel. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* mlp_parser: fix the channel mask value used for the top surround channelTim Walker2012-02-25
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mlpdec_parser: fix a few channel layouts.Tim Walker2012-02-22
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mlp parser: set duration instead of frame_sizeJustin Ruggles2012-02-20
|
* Make channel layout masks unsignedMans Rullgard2011-11-25
| | | | | | | | | | 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-02
|
* mlpdec: return meaningful error codes instead of -1Justin Ruggles2011-10-13
|
* lavc: add missing audioconvert includesAnton Khirnov2011-04-02
|
* mlp_parse.c: set AVCodecContext channel_layoutJohn Stebbins2011-03-30
| | | | | | 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-19
| | | | 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-26
| | | | | | | 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-12
| | | | | | 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-20
| | | | | | | | 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-23
| | | | | | | | 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-27
| | | | | | | | 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-13
| | | | Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split TrueHD decoder from MLPRamiro Polla2009-03-19
| | | | Originally committed as revision 18045 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-01
| | | | | | | 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-07
| | | | Originally committed as revision 16026 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlp: Fix compilation under CONFIG_AUDIO_NONSHORT.Mathieu Velten2008-12-06
| | | | | | 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-03
| | | | | | | | 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-13
| | | | Originally committed as revision 14733 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlp_parser: Initialize crc data in its own function.Ramiro Polla2008-08-13
| | | | Originally committed as revision 14722 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add required stdint.h header #include.Diego Biurrun2008-07-05
| | | | Originally committed as revision 14077 to svn://svn.ffmpeg.org/ffmpeg/trunk
* spelling cosmeticsDiego Biurrun2008-07-05
| | | | Originally committed as revision 14076 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Clarify comment about parity nibble.Ramiro Polla2008-07-02
| | | | 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-01
| | | | 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-27
| | | | 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-25
| | | | | | 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-09
| | | | Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: spelling fixesDiego Biurrun2007-12-03
| | | | Originally committed as revision 11155 to svn://svn.ffmpeg.org/ffmpeg/trunk
* MLP/TrueHD parserIan Caulfield2007-11-28
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