summaryrefslogtreecommitdiff
path: root/libavcodec/flacdec.c
Commit message (Collapse)AuthorAge
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-27
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: make avpriv_flac_is_extradata_valid() private on the next bumpAnton Khirnov2014-11-06
|
* lavc: make avpriv_flac_parse_streaminfo() private on the next bumpAnton Khirnov2014-11-06
|
* flac: Remove unused headersTristan Matthews2014-09-26
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* flac: make avpriv_flac_parse_block_header() inlineAnton Khirnov2014-05-28
| | | | | | This avoids all the ABI troubles associated with avpriv_. Since this function is very small and does not depend on any tables, making it inline should have no adverse effects.
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* flac: use meaningful return valuesLuca Barbato2013-07-28
|
* flacdec: drop unnecessary assertLuca Barbato2013-05-16
| | | | The condition cannot happen anymore.
* av_log_missing_feature() ---> avpriv_report_missing_feature()Diego Biurrun2013-03-13
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* flac: decode directly to the user-provided AVFrameJustin Ruggles2013-02-12
|
* flac: don't check the number of channels before setting the channel layout.Tim Walker2013-02-06
| | | | | | This is unnecessary, as ff_flac_set_channel_layout can handle any number of channels. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* flac: only set channel layout if not previously set or on channel count changeJustin Ruggles2012-12-22
| | | | Fixes Bug 402
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-04
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Include libavutil/channel_layout.h instead of libavutil/audioconvert.hJustin Ruggles2012-11-11
| | | | Also reorder some other #include when applicable.
* flacdec: do not warn on sample rate changeJustin Ruggles2012-11-01
|
* flacdec: allow mid-stream channel layout changeJustin Ruggles2012-11-01
| | | | | Although the libFLAC decoder cannot handle such a change, it is allowed by the spec and could potentially occur with live streams.
* flacdec: use av_samples_* functions for sample buffer allocationJustin Ruggles2012-11-01
| | | | Also, return an error on allocation failure.
* Improve wording and spelling of av_log_missing_feature messages.Diego Biurrun2012-10-23
|
* Use proper return values in case of missing featuresDiego Biurrun2012-10-12
|
* flacdec: simplify sample buffer handlingMans Rullgard2012-08-21
| | | | | | Pass pointer to sample buffer instead of channel number to various functions called from decode_subframe(). Also simplify a few expressions within this function.
* flacdec: simplify loop in decode_residuals()Mans Rullgard2012-08-21
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* flacdec: reverse lpc coeff order, simplify filterMans Rullgard2012-07-19
| | | | | | | Reversing the lpc coefficient order simplifies indexing in the filter. Signed-off-by: Mans Rullgard <mans@mansr.com>
* flac: Move flac functions shared between libraries to flac common codeDiego Biurrun2012-07-12
| | | | This fixes a number of flac-related build dependencies.
* flacdec: add planar output supportMans Rullgard2012-07-05
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* flacdec: move lpc filter to flacdspMans Rullgard2012-07-04
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* flacdec: split off channel decorrelation as flacdspMans Rullgard2012-07-04
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* flacdec: factor out code setting avctx->sample_fmtMans Rullgard2012-07-04
|
* flacdec: allocate sample buffers with av_mallocMans Rullgard2012-07-04
| | | | | | | | | The buffers are only allocated once, although it can happen from any of a few different places, so there is no need to use realloc. Using av_malloc() ensures they are aligned suitably for SIMD optimisations. Signed-off-by: Mans Rullgard <mans@mansr.com>
* flacdec: remove curr_bps from FLACContextMans Rullgard2012-07-04
| | | | This value does not need to be persistent across calls.
* flacdec: remove redundant setting of avctx->sample_fmtMans Rullgard2012-07-02
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* cosmetics: Align codec declarationsMartin Storsjö2012-04-06
| | | | | | | Also break some long lines, remove codec function placeholder comments and add spaces in sample/pixel format lists. Signed-off-by: Martin Storsjö <martin@martin.st>
* flacdec: set channel_layout based on channel countJustin Ruggles2012-02-22
| | | | | | | Channel layouts are specified in the FLAC format description at http://flac.sourceforge.net/format.html fixes Bug 209
* flac: fix infinite loops on all-zero input or end-of-stream.Ronald S. Bultje2012-02-16
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* Drop unnecessary av_uninit attributes from some variable declarations.Diego Biurrun2012-02-13
| | | | Recent versions of gcc (4.4+) no longer give false positive warnings.
* Add avcodec_decode_audio4().Justin Ruggles2011-12-02
| | | | | | Deprecate avcodec_decode_audio3(). Implement audio support in avcodec_default_get_buffer(). Implement the new audio decoder API in all audio decoders.
* flacdec: use av_get_bytes_per_sample() to get sample sizeJustin Ruggles2011-10-29
|
* lavc: use avpriv_ prefix for some flac symbols used in lavf.Anton Khirnov2011-10-20
| | | | | Specifically, ff_flac_parse_streaminfo, ff_flac_is_extradata_valid and ff_flac_parse_block_header
* flacdec: fix buffer size checking in get_metadata_size()Justin Ruggles2011-09-26
| | | | | | Adds an additional check before reading the next block header and avoids a potential integer overflow when checking the metadata size against the remaining buffer size.
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* doxygen: use Doxygen markup for authors and web links where appropriateDiego Biurrun2011-07-15
|
* 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>
* Define FLAC_MIN_FRAME_SIZE and use it in the FLAC decoder.Michael Chinen2010-12-07
| | | | | | Patch by Michael Chinen [mchinen at gmail] Originally committed as revision 25916 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify the FLAC decoder now that it no longer has to parse arbitrary raw FLACMichael Chinen2010-12-07
| | | | | | | data thanks to the recently added FLAC parser. Patch by Michael Chinen [mchinen at gmail] Originally committed as revision 25915 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add log_level_offset parameter to ff_flac_decode_frame_header(). It will be usedMichael Chinen2010-12-07
| | | | | | | to optionally silence the error messages. Patch by Michael Chinen [mchinen at gmail] Originally committed as revision 25912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move decode_frame_header() from flacdec.c to flac.c/h to share with theMichael Chinen2010-12-07
| | | | | | | forthcoming FLAC parser. Patch by Michael Chinen [mchinen at gmail] Originally committed as revision 25909 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 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
* Support decoding of FLAC files without a STREAMINFO header.Justin Ruggles2010-10-02
| | | | Originally committed as revision 25315 to svn://svn.ffmpeg.org/ffmpeg/trunk