summaryrefslogtreecommitdiff
path: root/libavcodec/flacdec.c
Commit message (Collapse)AuthorAge
* 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
* 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
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set sample format in flac_decode_init() rather than inJustin Ruggles2009-11-01
| | | | | | | ff_flac_parse_streaminfo() since the latter is shared with the raw FLAC demuxer, which should not be setting the sample format. Originally committed as revision 20430 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add CODEC_CAP_SUBFRAMES to the FLAC decoder capabilities. also add a FIXMEJustin Ruggles2009-09-16
| | | | | | | comment as a reminder that we can remove both capabilities once a parser is implemented. Originally committed as revision 19891 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: change variable-length array to fixed lengthMåns Rullgård2009-08-19
| | | | | | | pred_order can never exceed 32, so always allocating that amount is safe and not very wasteful. Originally committed as revision 19669 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename ff_log_missing_feature() to av_log_missing_feature().Ronald S. Bultje2009-06-29
| | | | Originally committed as revision 19294 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
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-07
| | | | | | | | | | | 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
* cosmetics: add an @return to documentation for decode_frame_header()Justin Ruggles2009-03-24
| | | | Originally committed as revision 18179 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: split frame header decoding and validation into a separateJustin Ruggles2009-03-24
| | | | | | function Originally committed as revision 18175 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: cosmetics: white spaceJustin Ruggles2009-03-22
| | | | Originally committed as revision 18167 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: cosmetics: separate the pure frame header parsing code fromJustin Ruggles2009-03-22
| | | | | | other frame header decoding code Originally committed as revision 18166 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: allow sample rate to change mid-stream, but log a warningJustin Ruggles2009-03-22
| | | | | | message when it does Originally committed as revision 18162 to svn://svn.ffmpeg.org/ffmpeg/trunk