summaryrefslogtreecommitdiff
path: root/libavcodec/flacdec.c
Commit message (Collapse)AuthorAge
* 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
* flacdec: cosmetics: indentationJustin Ruggles2009-03-22
| | | | Originally committed as revision 18159 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: change frame bps validation to return an error value if bpsJustin Ruggles2009-03-22
| | | | | | changes since this is not currently supported by the decoder. Originally committed as revision 18157 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: cosmetics: add some braces to if/else statementsJustin Ruggles2009-03-22
| | | | Originally committed as revision 18156 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: skip frame when allocated data size is too smallJustin Ruggles2009-03-22
| | | | Originally committed as revision 18155 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: don't check against current layout until after validating ch_mode.Justin Ruggles2009-03-22
| | | | | | should have been in last commit. Originally committed as revision 18154 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: give a more accurate error message when validating channelJustin Ruggles2009-03-22
| | | | | | layout. differentiates between invalid values and unsupported values. Originally committed as revision 18153 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: move data size check to flac_decode_frame()Justin Ruggles2009-03-22
| | | | Originally committed as revision 18151 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: comments and white space.Justin Ruggles2009-03-22
| | | | | | move skipping of frame header to decode_frame() Originally committed as revision 18150 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: remove unneeded local variableJustin Ruggles2009-03-22
| | | | Originally committed as revision 18148 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: cosmetics: rename 3 variablesJustin Ruggles2009-03-22
| | | | Originally committed as revision 18147 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: use a local variable for GetBitContext in decode_frame()Justin Ruggles2009-03-22
| | | | Originally committed as revision 18146 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add a function to calculate a more accurate estimate for maximum FLACJustin Ruggles2009-03-21
| | | | | | frame size and use the function in the FLAC decoder and FLAC encoder Originally committed as revision 18092 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: account for frame and subframe header overhead when calculatingJustin Ruggles2009-03-21
| | | | | | estimate for maximum frame size Originally committed as revision 18091 to svn://svn.ffmpeg.org/ffmpeg/trunk
* share sample rate and blocksize tables between the FLAC encoder and FLACJustin Ruggles2009-03-21
| | | | | | decoder Originally committed as revision 18089 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: remove unneeded variable, 'assignment'Justin Ruggles2009-03-21
| | | | Originally committed as revision 18085 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: cosmetics: rename 'decorrelation' to 'ch_mode'Justin Ruggles2009-03-21
| | | | Originally committed as revision 18084 to svn://svn.ffmpeg.org/ffmpeg/trunk
* share channel mode constants between the FLAC decoder and FLAC encoderJustin Ruggles2009-03-21
| | | | Originally committed as revision 18082 to svn://svn.ffmpeg.org/ffmpeg/trunk
* share some constants between the FLAC encoder and FLAC decoderJustin Ruggles2009-03-19
| | | | Originally committed as revision 18041 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: Add a shared function for parsing a FLAC metadata block header.Justin Ruggles2009-03-06
| | | | Originally committed as revision 17851 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: cosmetics: Add a comment with the data of the smallest FLACJustin Ruggles2009-03-05
| | | | | | frame for future reference. Originally committed as revision 17822 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: There is an even smaller FLAC frame size possibility.Justin Ruggles2009-03-05
| | | | Originally committed as revision 17821 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: 10l to me. I miscalculated the smallest FLAC frame. It is 16Justin Ruggles2009-03-05
| | | | | | bytes, not 24. Originally committed as revision 17820 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: cosmetics: move 2 statements to immediately after frameJustin Ruggles2009-03-05
| | | | | | decoding. Originally committed as revision 17819 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: Simplify frame sync by not using the bitstream reader.Justin Ruggles2009-03-05
| | | | Originally committed as revision 17818 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: Split the metadata_parse() function into 2 separate functions,Justin Ruggles2009-03-05
| | | | | | parse_streaminfo() and get_metadata_size(). Originally committed as revision 17817 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: Add a check for small buffer size. This ensures reading asJustin Ruggles2009-03-04
| | | | | | | | much of the frame header as possible without excluding the smallest possible FLAC frame. It also fixes a false positive warning message that was being emitted at the end of decoding. Originally committed as revision 17816 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: cosmetics: Use a more descriptive variable name for the numberJustin Ruggles2009-03-04
| | | | | | of bytes read, instead of reusing 'i'. Originally committed as revision 17815 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: Handle 32 bps data when checking allocated size.Justin Ruggles2009-03-04
| | | | Originally committed as revision 17814 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: Check curr_bps after wasted bits are subtracted.Justin Ruggles2009-03-04
| | | | Originally committed as revision 17813 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: When there is not enough data to read the next header block,Justin Ruggles2009-03-04
| | | | | | reset the bitstream reader instead of skipping backwards. Originally committed as revision 17798 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: indentation after last commitJustin Ruggles2009-03-04
| | | | Originally committed as revision 17796 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: Check for an inline header before calling metadata_parse().Justin Ruggles2009-03-04
| | | | Originally committed as revision 17795 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: Allocate buffers right after STREAMINFO is parsed.Justin Ruggles2009-03-04
| | | | Originally committed as revision 17794 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: indentation after last commitJustin Ruggles2009-03-03
| | | | Originally committed as revision 17791 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: Avoid parsing the STREAMINFO multiple times.Justin Ruggles2009-03-03
| | | | Originally committed as revision 17790 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: Warn about invalid max blocksize and limit the minimum value.Justin Ruggles2009-03-03
| | | | Originally committed as revision 17751 to svn://svn.ffmpeg.org/ffmpeg/trunk