summaryrefslogtreecommitdiffstats
path: root/libavcodec/flacdec.c
Commit message (Collapse)AuthorAgeFilesLines
* lavc: make avpriv_flac_is_extradata_valid() private on the next bumpAnton Khirnov2014-11-061-1/+1
|
* lavc: make avpriv_flac_parse_streaminfo() private on the next bumpAnton Khirnov2014-11-061-2/+2
|
* flac: Remove unused headersTristan Matthews2014-09-261-2/+0
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* flac: make avpriv_flac_parse_block_header() inlineAnton Khirnov2014-05-281-2/+2
| | | | | | 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-031-1/+1
|
* flac: use meaningful return valuesLuca Barbato2013-07-281-32/+32
|
* flacdec: drop unnecessary assertLuca Barbato2013-05-161-5/+0
| | | | The condition cannot happen anymore.
* av_log_missing_feature() ---> avpriv_report_missing_feature()Diego Biurrun2013-03-131-1/+1
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-1/+1
|
* flac: decode directly to the user-provided AVFrameJustin Ruggles2013-02-121-9/+5
|
* flac: don't check the number of channels before setting the channel layout.Tim Walker2013-02-061-1/+1
| | | | | | 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-221-1/+2
| | | | Fixes Bug 402
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-041-1/+1
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Include libavutil/channel_layout.h instead of libavutil/audioconvert.hJustin Ruggles2012-11-111-1/+1
| | | | Also reorder some other #include when applicable.
* flacdec: do not warn on sample rate changeJustin Ruggles2012-11-011-5/+1
|
* flacdec: allow mid-stream channel layout changeJustin Ruggles2012-11-011-18/+9
| | | | | 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-011-14/+29
| | | | Also, return an error on allocation failure.
* Improve wording and spelling of av_log_missing_feature messages.Diego Biurrun2012-10-231-1/+1
|
* Use proper return values in case of missing featuresDiego Biurrun2012-10-121-1/+1
|
* flacdec: simplify sample buffer handlingMans Rullgard2012-08-211-19/+18
| | | | | | 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-211-2/+6
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-1/+1
|
* flacdec: reverse lpc coeff order, simplify filterMans Rullgard2012-07-191-1/+1
| | | | | | | 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-121-73/+0
| | | | This fixes a number of flac-related build dependencies.
* flacdec: add planar output supportMans Rullgard2012-07-051-8/+26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* flacdec: move lpc filter to flacdspMans Rullgard2012-07-041-33/+2
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* flacdec: split off channel decorrelation as flacdspMans Rullgard2012-07-041-42/+11
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* flacdec: factor out code setting avctx->sample_fmtMans Rullgard2012-07-041-13/+15
|
* flacdec: allocate sample buffers with av_mallocMans Rullgard2012-07-041-2/+1
| | | | | | | | | 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-041-17/+18
| | | | This value does not need to be persistent across calls.
* flacdec: remove redundant setting of avctx->sample_fmtMans Rullgard2012-07-021-2/+0
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* cosmetics: Align codec declarationsMartin Storsjö2012-04-061-1/+1
| | | | | | | 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-221-0/+13
| | | | | | | 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-161-0/+9
| | | | | 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-131-1/+1
| | | | Recent versions of gcc (4.4+) no longer give false positive warnings.
* Add avcodec_decode_audio4().Justin Ruggles2011-12-021-16/+21
| | | | | | 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-291-1/+2
|
* lavc: use avpriv_ prefix for some flac symbols used in lavf.Anton Khirnov2011-10-201-8/+8
| | | | | 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-261-1/+3
| | | | | | 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-291-8/+7
| | | | It's more readable and less prone to breakage.
* doxygen: use Doxygen markup for authors and web links where appropriateDiego Biurrun2011-07-151-3/+1
|
* 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>
* Define FLAC_MIN_FRAME_SIZE and use it in the FLAC decoder.Michael Chinen2010-12-071-1/+1
| | | | | | 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-071-81/+9
| | | | | | | 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-071-1/+1
| | | | | | | 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-071-101/+1
| | | | | | | 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-121-5/+5
| | | | | | 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-021-4/+28
| | | | Originally committed as revision 25315 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
OpenPOWER on IntegriCloud