summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* pcmdec: move DVD PCM bits_per_coded_sample check near to the code that setsJustin Ruggles2011-10-26
| | | | the sample size.
* pcmdec: do not needlessly set *data_size to 0Justin Ruggles2011-10-26
|
* alacdec: remove unneeded NULL or zero-size packet checks.Justin Ruggles2011-10-26
| | | | This is already done in avcodec_decode_audio3()
* alacdec: simplify buffer allocation by using FF_ALLOC_OR_GOTO()Justin Ruggles2011-10-26
|
* alacdec: ask for a sample for unsupported sample depths.Justin Ruggles2011-10-26
| | | | Also return AVERROR_PATCHWELCOME.
* alacdec: cosmetics: use 'ch' instead of 'chan' to iterate channelsJustin Ruggles2011-10-26
|
* alacdec: move some declarations to the top of the functionJustin Ruggles2011-10-26
|
* alacdec: always use get_sbits_long() for uncompressed samplesJustin Ruggles2011-10-26
|
* alacdec: remove unneeded local variableJustin Ruggles2011-10-26
|
* alacdec: remove the numchannels parameter from several functions.Justin Ruggles2011-10-26
| | | | | They only operate on stereo content, so the extra param is not necessary and also allows for simplifying the code.
* alacdec: rename 2 functions.Justin Ruggles2011-10-26
| | | | Now they only do stereo interleaving.
* alacdec: move appending of extra_bits to a separate function.Justin Ruggles2011-10-26
| | | | This should also fix decoding of mono 24-bit.
* alacdec: split stereo decorrelation into a separate function.Justin Ruggles2011-10-26
| | | | | It is identical for 16-bit and 24-bit, so there is no need to have duplicate code.
* alacdec: cosmetics: rename 'wasted_bits' to 'extra_bits'.Justin Ruggles2011-10-26
| | | | | The bits are not wasted, they are additional low bits that are added to the 16-bit decompressed samples to increase the output sample depth.
* alacdec: remove unneeded numsamples checksJustin Ruggles2011-10-26
|
* alacdec: check for buffer allocation failure.Justin Ruggles2011-10-26
| | | | Also rearranges some functions for easier cleanup on failure.
* alacdec: allocate per-channel buffers based on channel count.Justin Ruggles2011-10-26
| | | | reduces memory usage when the stream has fewer than MAX_CHANNELS
* alacdec: read/validate number of channels from the extradata.Justin Ruggles2011-10-26
| | | | check frame header channel count against header/container channel count.
* alacdec: remove unneeded validation of setinfo_sample_size.Justin Ruggles2011-10-26
| | | | It is already done when using it to set sample_fmt.
* alacdec: set sample_fmt in alac_decode_init()Justin Ruggles2011-10-26
|
* alacdec: set bytespersample using av_get_bytes_per_sample()Justin Ruggles2011-10-26
|
* threads: restore has_b_frames in frame_thread_freeJanne Grunau2011-10-26
| | | | | | Otherwise the delay expressed in has_b_frames increases with every avcodec_close/avcodec_open. Fixes fate-ea-dct with more than 1 thread.
* H.264: Cometics to dsputil_mmx.cDaniel Kang2011-10-26
| | | | | | Add whitespace. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* g722dec: check output buffer size before decodingJustin Ruggles2011-10-25
|
* g722dec: cosmetics: reindent/linewrapJustin Ruggles2011-10-25
|
* g722dec: remove the use of lowres for half-rate decoding.Justin Ruggles2011-10-25
| | | | | | | It is broken because an AVCodecContext can be opened/closed multiple times, and sample_rate is getting divided by 2 each time that happens. This removes the only use of lowres for audio.
* tta: check for extradata allocation failure in tta demuxerJustin Ruggles2011-10-25
|
* tta: check for allocation failure of decode_bufferJustin Ruggles2011-10-25
|
* tta: use correct frame_length calculation.Justin Ruggles2011-10-25
| | | | using a floating-point calculation is not necessary.
* tta: add support for decoding 24-bit sample formatJustin Ruggles2011-10-25
| | | | | | Note that this will not work in most cases with avconv and avplay due to the AVCODEC_MAX_AUDIO_FRAME_SIZE limit, but it will decode correctly if given a large enough output buffer.
* cosmetics: indentationJustin Ruggles2011-10-25
|
* tta: remove pointless bracesJustin Ruggles2011-10-25
|
* tta: check output buffer size after adjusting frame length for last frameJustin Ruggles2011-10-25
|
* tta: fix reading of format in TTA header.Justin Ruggles2011-10-25
| | | | TTA does not support float at all, and format 2 is encrypted TTA.
* tta: remove useless commented-out linesJustin Ruggles2011-10-25
|
* tta: check remaining bitstream size while reading unary valueJustin Ruggles2011-10-25
|
* lavf: deprecate AVStream.stream_copyAnton Khirnov2011-10-25
| | | | | It's only used in avconv, so it properly belongs to OutputStream struct there.
* avconc: split choose_codec() to choose_decoder/choose_encoder.Anton Khirnov2011-10-25
| | | | | Prevents -c copy from working for input streams and allows to move stream_copy variable from AVStream to OutputStream.
* lavf: simplify by using FFMAX/FFMIN.Anton Khirnov2011-10-25
|
* mpegenc: add preload private option.Anton Khirnov2011-10-25
| | | | Deprecate AVFormatContext.preload.
* cosmetics: simplify latm_decode_initJanne Grunau2011-10-25
|
* latm: avoid unnecessary reinit of the aac decoderJanne Grunau2011-10-25
|
* aacdec: initialize sbr context only in new channel elementsJanne Grunau2011-10-25
|
* resample: reject unhandled conversionsJanne Grunau2011-10-25
| | | | audio_resample can not reduce the number of channels
* resample: remove unused #defineJanne Grunau2011-10-25
|
* adpcm: use sign_extend()Mans Rullgard2011-10-24
| | | | | | This avoids warnings from the overflow checker and simplifies the code. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpeg12: fix mpeg_decode_slice context parameter typeJanne Grunau2011-10-24
| | | | | | During slice threading only MpegEncContext is passed to mpeg_decode_slice, remove a wrong cast and change the function definition to take MpegEncContext pointer.
* Revert "mpeg12: move full_pel from MpegEncContext to Mpeg1Context"Janne Grunau2011-10-24
| | | | | | | | This reverts commit da22ba7df461c13bf0b0eabc953303803a285d91 since it broke slice threading. Slice threading just duplicates MpegEncContext so every value used during mpeg_decode_slice has to be in it. A second patch will fix the illusion that Mpeg1Context is available in mpeg_decode_slice.
* Move id3v2 tag writing to a separate file.Michael Karcher2011-10-23
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* swscale: add missing colons to x86 assembly yuv2planeX.Ronald S. Bultje2011-10-23
| | | | This fixes assembling using "nasm".