summaryrefslogtreecommitdiff
path: root/libavcodec/mlpdec.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix grammar errors in documentationMåns Rullgård2010-06-301-2/+2
| | | | Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Comment channel_params field in struct SubStream.Nick Brereton2010-05-111-0/+1
| | | | | | Patch by Nick Brereton <nick at nbrereton dot net> Originally committed as revision 23085 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Allocate channel decoding parameters for each substream. Some fileNick Brereton2010-05-111-16/+18
| | | | | | | | was encountered with a channel range that overlapped the previous substreams, and the code assumed no such overlap was possible. Patch by Nick Brereton <nick at nbrereton dot net> Originally committed as revision 23084 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
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-301-2/+2
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reduce log level of "Extracting .. channel downmix" to AV_LOG_DEBUG, theReimar Döffinger2010-01-271-1/+1
| | | | | | message is pointless to ordinary users and is printed once per frame. Originally committed as revision 21486 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix crash in MLP decoder due to integer overflow.Reimar Döffinger2010-01-241-1/+1
| | | | | | | Probably only DoS, init_get_bits sets buffer to NULL, thus causing a NULL-dereference directly after. Originally committed as revision 21426 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove pointless CONFIG_MLP_DECODER preprocessor check.Diego Biurrun2009-12-291-2/+0
| | | | | | The file is only ever compiled if the MLP decoder is enabled. Originally committed as revision 20968 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlp: Indent.Ramiro Polla2009-10-161-9/+9
| | | | Originally committed as revision 20255 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlp: Only initialize VLC tables once. This caused a crash when multipleRamiro Polla2009-10-161-0/+2
| | | | | | | instances of the decoder were started at different times. Bug reported by Maxim Anisiutkin. Originally committed as revision 20254 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlp: Simplify adressing of state and coeffs arrays for both filters by makingRamiro Polla2009-05-151-7/+8
| | | | | | the arrays sequential. Originally committed as revision 18841 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Fix possible writing out of array bounds introduced by beingRamiro Polla2009-05-061-0/+9
| | | | | | under-paranoid in r18651. Originally committed as revision 18763 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Split sync word error and MLP sync word check.Ramiro Polla2009-05-061-3/+8
| | | | | | | The previous code would print the wrong error message for MLP streams with TrueHD noise type. Originally committed as revision 18762 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Fix indentation that got mangled from copy&paste.Ramiro Polla2009-05-061-4/+4
| | | | Originally committed as revision 18761 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Move MLP's filter_channel() to dsputils.Ramiro Polla2009-04-301-24/+10
| | | | Originally committed as revision 18721 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Simplify filtering code by using only one counter variable.Ramiro Polla2009-04-261-13/+12
| | | | Originally committed as revision 18695 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Don't overallocate buffers.Ramiro Polla2009-04-211-2/+2
| | | | | | | | Now that max channels and primitive matrices are properly validated, there is no need to be paranoid that random data will be overwritten. As a bonus this makes matrix_coeff 16-byte aligned between matrices. Originally committed as revision 18651 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Validate num_primitive_matrices.Ramiro Polla2009-04-211-0/+10
| | | | Originally committed as revision 18650 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Validate max_channel and max_matrix_channel.Ramiro Polla2009-04-211-0/+16
| | | | Originally committed as revision 18649 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Restart header sync must be 0x31ea for MLP.Ramiro Polla2009-04-211-2/+3
| | | | Originally committed as revision 18648 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Read context variable to local variable to make code cleaner.Ramiro Polla2009-04-181-2/+2
| | | | Originally committed as revision 18615 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: {}- and whitespace-related cosmetics.Ramiro Polla2009-04-181-28/+21
| | | | Originally committed as revision 18614 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Use some context arrays with local variables in rematrix_channels().Ramiro Polla2009-04-181-3/+5
| | | | Originally committed as revision 18613 to svn://svn.ffmpeg.org/ffmpeg/trunk
* truehd: Simplify rematrix_channels() as per Michael's original review.Ramiro Polla2009-04-181-2/+4
| | | | Originally committed as revision 18612 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Make read_matrix_params() take unsigned int substr for consistency.Ramiro Polla2009-04-181-2/+3
| | | | Originally committed as revision 18611 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Check for {matrix,filter}_changed as soon as they are incremented.Ramiro Polla2009-04-181-15/+9
| | | | Originally committed as revision 18610 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
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-071-1/+3
| | | | | | | | | | | AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows passing of packet-specific flags from demuxer to decoder, such as the keyframe flag, which appears necessary to playback corePNG P-frames. Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread "Google Summer of Code participation" on the mailinglist. Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Filters and matrices may change only once per substream per access unit.Ramiro Polla2009-04-061-0/+22
| | | | Originally committed as revision 18338 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: There must be no extraword for MLP.Ramiro Polla2009-04-051-0/+4
| | | | Originally committed as revision 18337 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Validate non-restart bit from the substream header.Ramiro Polla2009-04-051-2/+12
| | | | Originally committed as revision 18336 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: matrix_out_ch must not be greater than max_matrix_channel, and not ↵Ramiro Polla2009-04-051-1/+1
| | | | | | max_channel. Originally committed as revision 18335 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Simplify check for substream_parity_present.Ramiro Polla2009-03-301-2/+4
| | | | Originally committed as revision 18240 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Simplify no restart header seen error.Ramiro Polla2009-03-301-6/+5
| | | | Originally committed as revision 18239 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Simplify substream length mismatch error.Ramiro Polla2009-03-301-5/+9
| | | | Originally committed as revision 18238 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Prettify substream parity check.Ramiro Polla2009-03-301-8/+6
| | | | Originally committed as revision 18237 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Cleaner and better termination word check.Ramiro Polla2009-03-301-11/+12
| | | | Originally committed as revision 18236 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: More validation for read_channel_params()Ramiro Polla2009-03-301-2/+10
| | | | Originally committed as revision 18235 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: whitespace cosmetics.Ramiro Polla2009-03-301-12/+6
| | | | Originally committed as revision 18234 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Simplify &foo[0] to foo and use index (which has just been initializedRamiro Polla2009-03-301-4/+4
| | | | | | | to MAX_BLOCKSIZE) instead of MAX_BLOCKSIZE, so both copies to/from state data look alike. Originally committed as revision 18233 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Split filter_state_buffer into [fi]irbuf and fp to [fi]ir.Ramiro Polla2009-03-301-16/+17
| | | | Originally committed as revision 18232 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Unroll copying filter state data and filtering for the two filters.Ramiro Polla2009-03-301-13/+15
| | | | Originally committed as revision 18231 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Max filter orders for FIR and IIR are 8 and 4 respectively.Ramiro Polla2009-03-301-5/+6
| | | | Originally committed as revision 18230 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Remove few random dprintf()s.Ramiro Polla2009-03-281-8/+0
| | | | Originally committed as revision 18212 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Check for blocksize in proper range.Ramiro Polla2009-03-271-2/+2
| | | | Originally committed as revision 18211 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: quant_step_size can be any value from 0 to 0xF.Ramiro Polla2009-03-271-1/+0
| | | | Originally committed as revision 18210 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: output_shift can be any value from -8 to 7.Ramiro Polla2009-03-271-1/+0
| | | | Originally committed as revision 18209 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: output_shift is signedRamiro Polla2009-03-271-1/+1
| | | | Originally committed as revision 18208 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Split read_channel_params() into its own function.Ramiro Polla2009-03-271-37/+49
| | | | Originally committed as revision 18207 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mlpdec: Split read_matrix_params() into its own function.Ramiro Polla2009-03-271-38/+50
| | | | Originally committed as revision 18206 to svn://svn.ffmpeg.org/ffmpeg/trunk