summaryrefslogtreecommitdiffstats
path: root/libavcodec/flacdec.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-301-1/+1
| | | | | | 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-011-4/+4
| | | | | | | 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-161-1/+3
| | | | | | | 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-191-1/+1
| | | | | | | 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-291-1/+1
| | | | Originally committed as revision 19294 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename bitstream.h to get_bits.h.Stefano Sabatini2009-04-131-1/+1
| | | | Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-071-1/+3
| | | | | | | | | | | 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-241-0/+1
| | | | Originally committed as revision 18179 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: split frame header decoding and validation into a separateJustin Ruggles2009-03-241-37/+56
| | | | | | function Originally committed as revision 18175 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: cosmetics: white spaceJustin Ruggles2009-03-221-3/+3
| | | | Originally committed as revision 18167 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: cosmetics: separate the pure frame header parsing code fromJustin Ruggles2009-03-221-32/+34
| | | | | | 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-221-4/+8
| | | | | | message when it does Originally committed as revision 18162 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: cosmetics: indentationJustin Ruggles2009-03-221-1/+1
| | | | 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-221-9/+10
| | | | | | 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-221-15/+15
| | | | Originally committed as revision 18156 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: skip frame when allocated data size is too smallJustin Ruggles2009-03-221-1/+1
| | | | 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-221-1/+1
| | | | | | 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-221-4/+11
| | | | | | 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-221-6/+12
| | | | Originally committed as revision 18151 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: comments and white space.Justin Ruggles2009-03-221-3/+12
| | | | | | 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-221-5/+4
| | | | Originally committed as revision 18148 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: cosmetics: rename 3 variablesJustin Ruggles2009-03-221-19/+19
| | | | 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-221-15/+16
| | | | 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-211-1/+2
| | | | | | 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-211-2/+1
| | | | | | 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-211-13/+3
| | | | | | decoder Originally committed as revision 18089 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: remove unneeded variable, 'assignment'Justin Ruggles2009-03-211-7/+5
| | | | Originally committed as revision 18085 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: cosmetics: rename 'decorrelation' to 'ch_mode'Justin Ruggles2009-03-211-8/+8
| | | | 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-211-16/+9
| | | | Originally committed as revision 18082 to svn://svn.ffmpeg.org/ffmpeg/trunk
* share some constants between the FLAC encoder and FLAC decoderJustin Ruggles2009-03-191-7/+4
| | | | 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-061-6/+16
| | | | 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-051-1/+2
| | | | | | 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-051-1/+1
| | | | 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-051-1/+1
| | | | | | 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-051-3/+2
| | | | | | 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-051-9/+11
| | | | 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-051-36/+50
| | | | | | 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-041-0/+5
| | | | | | | | 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-041-7/+7
| | | | | | 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-041-1/+1
| | | | Originally committed as revision 17814 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: Check curr_bps after wasted bits are subtracted.Justin Ruggles2009-03-041-4/+4
| | | | 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-041-2/+2
| | | | | | 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-041-22/+22
| | | | 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-041-5/+8
| | | | Originally committed as revision 17795 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: Allocate buffers right after STREAMINFO is parsed.Justin Ruggles2009-03-041-2/+1
| | | | Originally committed as revision 17794 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: indentation after last commitJustin Ruggles2009-03-031-2/+2
| | | | Originally committed as revision 17791 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: Avoid parsing the STREAMINFO multiple times.Justin Ruggles2009-03-031-4/+7
| | | | 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-031-0/+5
| | | | Originally committed as revision 17751 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: remove a pointless commentJustin Ruggles2009-03-031-1/+0
| | | | Originally committed as revision 17749 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacdec: Remove unused variable, min_blocksize.Justin Ruggles2009-03-031-3/+2
| | | | Originally committed as revision 17748 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud